return; for(Iterator<WebServiceHandlerChain> hc = ep.getHandlerChain().iterator(); hc.hasNext();) { WebServiceHandlerChain thisHc = hc.next();
public void configureJAXWSServiceHandlers(WebServiceEndpoint ep, String bindingId, WSBinding bindingObj) { // No handler chains; do nothing if(!ep.hasHandlerChain()) { return; } LinkedList handlerChainList = ep.getHandlerChain(); List<Handler> finalHandlerList = new ArrayList<Handler>(); Set<String> roles = new HashSet(); for(Iterator<WebServiceHandlerChain> i = handlerChainList.iterator(); i.hasNext();) { WebServiceHandlerChain hc = i.next(); // Apply the serviceName / portName / bindings filter to ensure // that the handlers are for this endpoint if(!patternsMatch(hc, ep.getServiceName(), ep.getWsdlPort(), bindingId)) { continue; } // OK - this handler has to be configured for this endpoint // Iterate through all handlers that have been configured List<Handler> handlerInfo = processConfiguredHandlers(hc.getHandlers(), roles); finalHandlerList.addAll(handlerInfo); } // Processing of all handlers over; // set final list of handler in RuntimeEndpointInfo bindingObj.setHandlerChain(finalHandlerList); // Set soap roles for soap bindings only if(bindingObj instanceof javax.xml.ws.soap.SOAPBinding) { ((javax.xml.ws.soap.SOAPBinding)bindingObj).setRoles(roles); } }
handlerChainNode.writeWebServiceHandlerChains(wseNode, descriptor.getHandlerChain()); return wseNode;
handlerChainNode.writeWebServiceHandlerChains(wseNode, descriptor.getHandlerChain()); return wseNode;