axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r611573 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/RESTUtil.java
Date Sun, 13 Jan 2008 13:26:39 GMT
Author: keithc
Date: Sun Jan 13 05:26:39 2008
New Revision: 611573

URL: http://svn.apache.org/viewvc?rev=611573&view=rev
Log:
Changing the order in which dispatchers are invoked. Using the HTTPLocation dispatcher first
as its more likely to dispatch in the REST case.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/RESTUtil.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/RESTUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/RESTUtil.java?rev=611573&r1=611572&r2=611573&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/RESTUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/util/RESTUtil.java
Sun Jan 13 05:26:39 2008
@@ -141,14 +141,13 @@
         requestDispatcher.invoke(msgContext);
         AxisService axisService = msgContext.getAxisService();
         if (axisService != null) {
-            RequestURIOperationDispatcher requestURIOperationDispatcher =
-                    new RequestURIOperationDispatcher();
-            requestURIOperationDispatcher.invoke(msgContext);
-
+            HTTPLocationBasedDispatcher httpLocationBasedDispatcher =
+                    new HTTPLocationBasedDispatcher();
+            httpLocationBasedDispatcher.invoke(msgContext);
             if (msgContext.getAxisOperation() == null) {
-                HTTPLocationBasedDispatcher httpLocationBasedDispatcher =
-                        new HTTPLocationBasedDispatcher();
-                httpLocationBasedDispatcher.invoke(msgContext);
+                RequestURIOperationDispatcher requestURIOperationDispatcher =
+                        new RequestURIOperationDispatcher();
+                requestURIOperationDispatcher.invoke(msgContext);
             }
 
             AxisOperation axisOperation;



---------------------------------------------------------------------
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