DescriptionUtils.registerHandlerHeaders(desc.getAxisService(), this.binding.getHandlerChain());
}
private HandlerChainsType toAxis2HandlerChainsType(HandlerChainsInfo handlerChainsInfo) {
HandlerChainsType handlerChains = new HandlerChainsType();
for (HandlerChainInfo handlerChainInfo : handlerChainsInfo.handleChains) {
HandlerChainType handlerChain = new HandlerChainType();
handlerChain.setPortNamePattern(handlerChainInfo.portNamePattern);
handlerChain.setServiceNamePattern(handlerChainInfo.serviceNamePattern);
handlerChain.getProtocolBindings().addAll(handlerChainInfo.protocolBindings);
for (HandlerInfo handlerInfo : handlerChainInfo.handlers) {
HandlerType handler = new HandlerType();
FullyQualifiedClassType classType = new FullyQualifiedClassType();
classType.setValue(handlerInfo.handlerClass);
handler.setHandlerClass(classType);
org.apache.axis2.jaxws.description.xml.handler.String nameType = new org.apache.axis2.jaxws.description.xml.handler.String();
nameType.setValue(handlerInfo.handlerName);
handler.setHandlerName(nameType);
handlerChain.getHandler().add(handler);
}
handlerChains.getHandlerChain().add(handlerChain);
}
return handlerChains;
}