You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ga...@apache.org on 2008/04/07 07:40:33 UTC
svn commit: r645384 -
/webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java
Author: gawor
Date: Sun Apr 6 22:40:32 2008
New Revision: 645384
URL: http://svn.apache.org/viewvc?rev=645384&view=rev
Log:
handler protocol bindings element correctly (AXIS2-3709)
Modified:
webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java
Modified: webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java?rev=645384&r1=645383&r2=645384&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java (original)
+++ webservices/axis2/branches/java/1_4/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java Sun Apr 6 22:40:32 2008
@@ -20,6 +20,8 @@
package org.apache.axis2.jaxws.description.impl;
import java.io.InputStream;
+import java.util.Arrays;
+import java.util.List;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
@@ -82,7 +84,7 @@
} else if ("service-name-pattern".equals(name)) {
handler.setServiceNamePattern(processPatternElement(el));
} else if ("protocol-bindings".equals(name)) {
- handler.getProtocolBindings().add(processProtocolBindingsElement(el));
+ handler.getProtocolBindings().addAll(processProtocolBindingsElement(el));
} else if ("handler".equals(name)) {
handler.getHandler().add(processHandlerElement(el));
}
@@ -91,8 +93,10 @@
return handler;
}
- private String processProtocolBindingsElement(Element el) {
- return el.getTextContent().trim();
+ private List<String> processProtocolBindingsElement(Element el) {
+ String protocolBindingsString = el.getTextContent().trim();
+ String [] protocolBindings = protocolBindingsString.split("\\s+");
+ return Arrays.asList(protocolBindings);
}
private QName processPatternElement(Element el) throws Exception {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org