/*
* Gets the right handlers for the port/service/bindings and performs injection.
*/
protected void configureHandlers() throws Exception {
EndpointDescription desc = AxisServiceGenerator.getEndpointDescription(this.service);
String xml = this.portInfo.getHandlersAsXML();
HandlerChainsType handlerChains = null;
if (xml != null) {
ByteArrayInputStream in = new ByteArrayInputStream(xml.getBytes("UTF-8"));
handlerChains = DescriptionUtils.loadHandlerChains(in, null);
desc.setHandlerChain(handlerChains);
}
if (LOG.isDebugEnabled()) {
logHandlers(desc.getHandlerChain());
}
this.binding = BindingUtils.createBinding(desc);
DescriptionUtils.registerHandlerHeaders(desc.getAxisService(), this.binding.getHandlerChain());
}