axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r415635 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Date Tue, 20 Jun 2006 13:20:45 GMT
Author: azeez
Date: Tue Jun 20 06:20:45 2006
New Revision: 415635

URL: http://svn.apache.org/viewvc?rev=415635&view=rev
Log:
Added a small Null check


Modified:
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java?rev=415635&r1=415634&r2=415635&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Tue Jun 20 06:20:45 2006
@@ -333,7 +333,9 @@
         msgContext.setServerSide(true);
 
         String requestURI = req.getRequestURI();
-        requestURI = requestURI.replaceFirst("rest", SERVICE_PATH);
+        if (requestURI.indexOf("rest") != -1) {
+            requestURI = requestURI.replaceFirst("rest", SERVICE_PATH);
+        }
         msgContext.setTo(new EndpointReference(requestURI));
         msgContext.setProperty(Constants.OUT_TRANSPORT_INFO,
                 new ServletBasedOutTransportInfo(resp));



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message