@Override public void initDispatcher() { init(new HandlerDescription(NAME)); }
@Override public AxisService findService(MessageContext messageContext) throws AxisFault { EndpointReference toEPR = messageContext.getTo(); if (toEPR != null) { if(isDebugEnabled){ log.debug("Checking for Service using target endpoint address : " + toEPR.getAddress()); } String path = URI.create(toEPR.getAddress()).getPath(); ConfigurationContext configurationContext = messageContext.getConfigurationContext(); AxisConfiguration registry = configurationContext.getAxisConfiguration(); String serviceName = findAxisServiceName(registry, path); return registry.getService(serviceName); } else { if(isDebugEnabled){ log.debug("Attempted to check for Service using null target endpoint URI"); } return null; } }