Author: jim.ma
Date: 2010-03-05 02:16:42 -0500 (Fri, 05 Mar 2010)
New Revision: 11720
Modified:
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/metadata/j2ee/serviceref/HandlerChainsObjectFactory.java
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/metadata/j2ee/serviceref/UnifiedHandlerChainMetaData.java
Log:
[JBPAPP-3832]:ingore the handlerchain contains illegal namesapce prefix
Modified:
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/metadata/j2ee/serviceref/HandlerChainsObjectFactory.java
===================================================================
---
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/metadata/j2ee/serviceref/HandlerChainsObjectFactory.java 2010-03-05
06:12:55 UTC (rev 11719)
+++
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/metadata/j2ee/serviceref/HandlerChainsObjectFactory.java 2010-03-05
07:16:42 UTC (rev 11720)
@@ -74,7 +74,10 @@
public void addChild(UnifiedHandlerChainsMetaData handlerConfig,
UnifiedHandlerChainMetaData handlerChain, UnmarshallingContext navigator, String
namespaceURI,
String localName)
{
- handlerConfig.addHandlerChain(handlerChain);
+ if (!handlerChain.isExcluded())
+ {
+ handlerConfig.addHandlerChain(handlerChain);
+ }
}
/**
@@ -121,12 +124,21 @@
if (log.isTraceEnabled())
log.trace("UnifiedHandlerChainMetaData setValue: nuri=" + namespaceURI
+ " localName=" + localName + " value=" + value);
- if (localName.equals("protocol-bindings"))
- handlerChain.setProtocolBindings(value);
- else if (localName.equals("service-name-pattern"))
- handlerChain.setServiceNamePattern(navigator.resolveQName(value));
- else if (localName.equals("port-name-pattern"))
- handlerChain.setPortNamePattern(navigator.resolveQName(value));
+ try
+ {
+ if (localName.equals("protocol-bindings"))
+ handlerChain.setProtocolBindings(value);
+ else if (localName.equals("service-name-pattern"))
+ handlerChain.setServiceNamePattern(navigator.resolveQName(value));
+ else if (localName.equals("port-name-pattern"))
+ handlerChain.setPortNamePattern(navigator.resolveQName(value));
+ }
+ catch (java.lang.IllegalStateException ex)
+ {
+ log.warn("Could not get " + localName + " value : "
+ + ex.getMessage() + ", this handler chain will be ingored");
+ handlerChain.setExcluded(true);
+ }
}
/**
Modified:
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/metadata/j2ee/serviceref/UnifiedHandlerChainMetaData.java
===================================================================
---
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/metadata/j2ee/serviceref/UnifiedHandlerChainMetaData.java 2010-03-05
06:12:55 UTC (rev 11719)
+++
spi/branches/jbossws-spi-1.1.2/src/main/java/org/jboss/wsf/spi/metadata/j2ee/serviceref/UnifiedHandlerChainMetaData.java 2010-03-05
07:16:42 UTC (rev 11720)
@@ -42,6 +42,7 @@
private String protocolBindings;
private List<UnifiedHandlerMetaData> handlers = new
ArrayList<UnifiedHandlerMetaData>();
private PortInfo portInfo;
+ private boolean excluded;
public UnifiedHandlerChainMetaData(UnifiedHandlerChainsMetaData handlerChains)
{
@@ -91,4 +92,12 @@
{
handlers.add(handler);
}
+
+ public boolean isExcluded() {
+ return this.excluded;
+ }
+
+ public void setExcluded(boolean excluded) {
+ this.excluded = excluded;
+ }
}