You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2006/11/25 06:34:35 UTC

svn commit: r479086 - /webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/engine/InstanceDispatcher.java

Author: dims
Date: Fri Nov 24 21:34:35 2006
New Revision: 479086

URL: http://svn.apache.org/viewvc?view=rev&rev=479086
Log:
Part of fix for AXIS2-1769 - don't create QName everytime, turned it into a constant

Modified:
    webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/engine/InstanceDispatcher.java

Modified: webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/engine/InstanceDispatcher.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/engine/InstanceDispatcher.java?view=diff&rev=479086&r1=479085&r2=479086
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/engine/InstanceDispatcher.java (original)
+++ webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/engine/InstanceDispatcher.java Fri Nov 24 21:34:35 2006
@@ -38,7 +38,8 @@
  * This will then try to find the Contexts of ServiceGroup, Service and the Operation.
  */
 public class InstanceDispatcher extends AbstractHandler {
-
+    private static final QName SERVICE_GROUP_QNAME = new QName(Constants.AXIS2_NAMESPACE_URI,
+            Constants.SERVICE_GROUP_ID, Constants.AXIS2_NAMESPACE_PREFIX);
 
     /**
      * Post Condition : All the Contexts must be populated.
@@ -153,8 +154,7 @@
         }
         SOAPHeader soapHeader = msgContext.getEnvelope().getHeader();
         if (soapHeader != null) {
-            OMElement serviceGroupId = soapHeader.getFirstChildWithName(new QName(Constants.AXIS2_NAMESPACE_URI,
-                    Constants.SERVICE_GROUP_ID, Constants.AXIS2_NAMESPACE_PREFIX));
+            OMElement serviceGroupId = soapHeader.getFirstChildWithName(SERVICE_GROUP_QNAME);
             if (serviceGroupId != null) {
                 String groupId = serviceGroupId.getText();
                 ServiceGroupContext serviceGroupContext = msgContext.getConfigurationContext().



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