cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r773581 - /cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/AnnotationHandlerChainBuilder.java
Date Mon, 11 May 2009 14:40:44 GMT
Author: dkulp
Date: Mon May 11 14:40:43 2009
New Revision: 773581

URL: http://svn.apache.org/viewvc?rev=773581&view=rev
Log:
[CXF-2185] Patch from Alessio Soldano applied

Modified:
    cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/AnnotationHandlerChainBuilder.java

Modified: cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/AnnotationHandlerChainBuilder.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/AnnotationHandlerChainBuilder.java?rev=773581&r1=773580&r2=773581&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/AnnotationHandlerChainBuilder.java
(original)
+++ cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/handler/AnnotationHandlerChainBuilder.java
Mon May 11 14:40:43 2009
@@ -23,6 +23,7 @@
 import java.util.ArrayList;
 import java.util.List;
 import java.util.ResourceBundle;
+import java.util.StringTokenizer;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 import java.util.regex.Pattern;
@@ -172,6 +173,14 @@
             return true;
         }
         String name = el.getTextContent().trim();
+        StringTokenizer st = new StringTokenizer(name, " ", false);
+        boolean result = false;
+        while (st.hasMoreTokens() && !result) {
+            result = result || singleProtocolMatches(st.nextToken(), id);
+        }
+        return result;
+    }
+    private boolean singleProtocolMatches(String name, String id) {
         if ("##SOAP11_HTTP".equals(name)) {
             return "http://schemas.xmlsoap.org/wsdl/soap/http".contains(id)
                 || "http://schemas.xmlsoap.org/soap/".contains(id);



Mime
View raw message