ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r683250 - /webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
Date Wed, 06 Aug 2008 12:43:02 GMT
Author: nandana
Date: Wed Aug  6 05:43:01 2008
New Revision: 683250

URL: http://svn.apache.org/viewvc?rev=683250&view=rev
Log:
AXIS2-3958 Applying Han's patch

Modified:
    webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java

Modified: webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java?rev=683250&r1=683249&r2=683250&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
(original)
+++ webservices/axis2/branches/java/1_4/modules/kernel/src/org/apache/axis2/engine/AxisConfiguration.java
Wed Aug  6 05:43:01 2008
@@ -95,7 +95,7 @@
     private URL axis2Repository = null;
 
     private Map allServices = new Hashtable();
-    private HashMap allEndpoints = new HashMap();
+    private Map allEndpoints = new Hashtable();
 
     /**
      * Stores the module specified in the server.xml at the document parsing time.
@@ -389,17 +389,11 @@
             }
 
             //removes the endpoints to this service
+            String serviceName = axisService.getName();
             String key = null;
-            List endPointsForThisService = new ArrayList();
-            for (Iterator iter = this.allEndpoints.keySet().iterator(); iter.hasNext();){
-                key = (String)iter.next();
-                if (key.startsWith(axisService.getName())){
-                    endPointsForThisService.add(key);
-                }
-            }
-
-            for (Iterator iter = endPointsForThisService.iterator();iter.hasNext();){
-                this.allEndpoints.remove(iter.next());
+            for (Iterator iter = axisService.getEndpoints().keySet().iterator(); iter.hasNext();){
+                key = serviceName + "." + (String)iter.next();
+                this.allEndpoints.remove(key);
             }
 
         }



Mime
View raw message