Code example for HandlerResolver

Methods: getHandlerChain

0
    public void testHandlerResolver() { 
        String path = "/configuration/handlers/handler.xml";
        File file = new File(testResourceDir, path);
        HandlerResolver resolver = new HandlerResolverImpl(file);
        PortInfo pi = new DummyPortInfo();
        List<Handler> list = resolver.getHandlerChain(pi);
        assertEquals(2, list.size());
    } 
     
    public class DummyPortInfo implements PortInfo {
 
        public String getBindingID() {
            return SOAPBinding.SOAP11HTTP_BINDING;
        } 
 
        public QName getPortName() {
            return new QName("http://www.apache.org/test/namespace", "DummyPort");
        } 
 
        public QName getServiceName() {