ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r179762 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java
Date Fri, 03 Jun 2005 09:57:53 GMT
Author: chathura
Date: Fri Jun  3 02:57:51 2005
New Revision: 179762

URL: http://svn.apache.org/viewcvs?rev=179762&view=rev
Log:
Dispatcher bug fixed to extract the service name from the uri. This was not working when the
URi based dispatching was done using the following like uri(http://<host>/services/).
Service is hosted in the root web directory.

Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java?rev=179762&r1=179761&r2=179762&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java
(original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/engine/RequestURIBasedDispatcher.java
Fri Jun  3 02:57:51 2005
@@ -69,7 +69,7 @@
 
                 int index = filePart.lastIndexOf(URI_ID_STRING);
                 String serviceStr = null;
-                if (index > 0) {
+                if (-1 != index) {
                     serviceStr =
                         filePart.substring(index + URI_ID_STRING.length() + 1);
 



Mime
View raw message