cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r490109 - /incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/HttpUriMapper.java
Date Mon, 25 Dec 2006 03:56:45 GMT
Author: ningjiang
Date: Sun Dec 24 19:56:44 2006
New Revision: 490109

URL: http://svn.apache.org/viewvc?view=rev&rev=490109
Log:
Added the missing file 

Modified:
    incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/HttpUriMapper.java

Modified: incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/HttpUriMapper.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/HttpUriMapper.java?view=diff&rev=490109&r1=490108&r2=490109
==============================================================================
--- incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/HttpUriMapper.java
(original)
+++ incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/transport/HttpUriMapper.java
Sun Dec 24 19:56:44 2006
@@ -35,11 +35,14 @@
     }
     
     public static String getResourceBase(String path) {
-        String servletMap = path;
+        String servletMap = "";
         int idx = path.lastIndexOf('/');
         if (idx > 0) {
             servletMap = path.substring(idx);
         }
+        if ("".equals(servletMap) || "".equals(path)) {
+            servletMap = "/";
+        } 
         return servletMap;
     }
 }



Mime
View raw message