public static HandlerChainInfo buildHandlerChainInfoFromXML ( HandlerChain hChain ) { HandlerChainInfo hcInfo = new HandlerChainInfo ( ) ; // set Service QName if ( hChain . getServiceNamePattern ( ) != null ) { hcInfo . setServiceNamePattern ( new QName ( hChain . getServiceNamePattern ( ) . getNamespaceURI ( ) , hChain . getServiceNamePattern ( ) . getLocalPart ( ) ) ) ; } else { hcInfo . setServiceNamePattern ( new QName ( "*" ) ) ; } // set Port QName if ( hChain . getPortNamePattern ( ) != null ) { hcInfo . setPortNamePattern ( new QName ( hChain . getPortNamePattern ( ) . getNamespaceURI ( ) , hChain . getPortNamePattern ( ) . getLocalPart ( ) ) ) ; } else { hcInfo . setPortNamePattern ( new QName ( "*" ) ) ; } // add protocol bindings hcInfo . addProtocolBindings ( hChain . getProtocolBindings ( ) ) ; for ( com . ibm . ws . javaee . dd . common . wsclient . Handler handler : hChain . getHandlers ( ) ) { hcInfo . addHandlerInfo ( buildHandlerInfoFromXML ( handler ) ) ; } return hcInfo ; }
Build the handlerChain info from web . xml