Examples of HandlerChainType


Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

    public List<Handler> getHandlerChain(PortInfo portinfo) {
        ArrayList<Handler> handlers = new ArrayList<Handler>();
        Iterator it = handlerChainsType == null ? null : handlerChainsType.getHandlerChain().iterator();

        while ((it != null) && (it.hasNext())) {
            HandlerChainType handlerChainType = ((HandlerChainType)it.next());
           
            // if !match, continue (to next chain)
            if (!(chainResolvesToPort(handlerChainType, portinfo)))
                continue;
           
            List<HandlerType> handlerTypeList = handlerChainType.getHandler();
            Iterator ht = handlerTypeList.iterator();
            while (ht.hasNext()) {
               
                HandlerType handlerType = (HandlerType)ht.next();
               
View Full Code Here

Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

        }

        Iterator it = handlerChainsType == null ? null : handlerChainsType.getHandlerChain().iterator();

        while ((it != null) && (it.hasNext())) {
            HandlerChainType handlerChainType = ((HandlerChainType)it.next());
           
            // if !match, continue (to next chain)
            if (!(chainResolvesToPort(handlerChainType, portinfo)))
                continue;
           
            List<HandlerType> handlerTypeList = handlerChainType.getHandler();
            Iterator ht = handlerTypeList.iterator();
            while (ht.hasNext()) {
                HandlerType handlerType = (HandlerType) ht.next();
                // TODO must do better job comparing the handlerType with the PortInfo param
                // to see if the current iterator handler is intended for this service.
View Full Code Here

Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

    }

    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;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

    }

    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;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

        }

        Iterator it = handlerChainsType == null ? null : handlerChainsType.getHandlerChain().iterator();

        while ((it != null) && (it.hasNext())) {
            HandlerChainType handlerChainType = ((HandlerChainType)it.next());
           
            // if !match, continue (to next chain)
            if (!(chainResolvesToPort(handlerChainType, portinfo)))
                continue;
           
            List<HandlerType> handlerTypeList = handlerChainType.getHandler();
            Iterator ht = handlerTypeList.iterator();
            while (ht.hasNext()) {
                HandlerType handlerType = (HandlerType) ht.next();
                // TODO must do better job comparing the handlerType with the PortInfo param
                // to see if the current iterator handler is intended for this service.
View Full Code Here

Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

        }

        Iterator it = handlerCT == null ? null : handlerCT.getHandlerChain().iterator();

        while ((it != null) && (it.hasNext())) {
            HandlerChainType handlerChainType = ((HandlerChainType)it.next());
           
            // if !match, continue (to next chain)
            if (!(chainResolvesToPort(handlerChainType, portinfo)))
                continue;
           
            List<HandlerType> handlerTypeList = handlerChainType.getHandler();
            Iterator ht = handlerTypeList.iterator();
            while (ht.hasNext()) {
               
                HandlerType handlerType = (HandlerType)ht.next();
               
View Full Code Here

Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

        }

        Iterator it = handlerChainsType == null ? null : handlerChainsType.getHandlerChain().iterator();

        while ((it != null) && (it.hasNext())) {
            HandlerChainType handlerChainType = ((HandlerChainType)it.next());
           
            // if !match, continue (to next chain)
            if (!(chainResolvesToPort(handlerChainType, portinfo)))
                continue;
           
            List<HandlerType> handlerTypeList = handlerChainType.getHandler();
            Iterator ht = handlerTypeList.iterator();
            while (ht.hasNext()) {
                HandlerType handlerType = (HandlerType) ht.next();
                // TODO must do better job comparing the handlerType with the PortInfo param
                // to see if the current iterator handler is intended for this service.
View Full Code Here

Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

        return handlerChains;
    }
   
    private HandlerChainType processHandlerChainElement(Element el) throws Exception {
        HandlerChainType handler = new HandlerChainType();
        Node node = el.getFirstChild();
        while (node != null) {
            Node cur = node;
            node = node.getNextSibling();
            if (cur instanceof Element) {
                el = (Element)cur;
                if (!JAVA_EE_NS.equals(el.getNamespaceURI())) {
                    throw new WebServiceException();
                }
                String name = el.getLocalName();
                if ("port-name-pattern".equals(name)) {
                    handler.setPortNamePattern(processPatternElement(el));
                } else if ("service-name-pattern".equals(name)) {
                    handler.setServiceNamePattern(processPatternElement(el));
                } else if ("protocol-bindings".equals(name)) {
                    handler.getProtocolBindings().addAll(processProtocolBindingsElement(el));
                } else if ("handler".equals(name)) {
                    handler.getHandler().add(processHandlerElement(el));
                }
            }
        }
        return handler;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

        return handlerChains;
    }
   
    private HandlerChainType processHandlerChainElement(Element el) throws Exception {
        HandlerChainType handler = new HandlerChainType();
        Node node = el.getFirstChild();
        while (node != null) {
            Node cur = node;
            node = node.getNextSibling();
            if (cur instanceof Element) {
                el = (Element)cur;
                if (!JAVA_EE_NS.equals(el.getNamespaceURI())) {
                    throw new WebServiceException();
                }
                String name = el.getLocalName();
                if ("port-name-pattern".equals(name)) {
                    handler.setPortNamePattern(processPatternElement(el));
                } else if ("service-name-pattern".equals(name)) {
                    handler.setServiceNamePattern(processPatternElement(el));
                } else if ("protocol-bindings".equals(name)) {
                    handler.getProtocolBindings().addAll(processProtocolBindingsElement(el));
                } else if ("handler".equals(name)) {
                    handler.getHandler().add(processHandlerElement(el));
                }
            }
        }
        return handler;
    }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.xml.handler.HandlerChainType

        HandlerChainsType handlerCT = endpointDesc.getHandlerChain();

        Iterator it = handlerCT == null ? null : handlerCT.getHandlerChain().iterator();

        while ((it != null) && (it.hasNext())) {
            HandlerChainType handlerChainType = ((HandlerChainType)it.next());
           
            // if !match, continue (to next chain)
            if (!(chainResolvesToPort(handlerChainType, portinfo)))
                continue;
           
            List<HandlerType> handlerTypeList = handlerChainType.getHandler();
            Iterator ht = handlerTypeList.iterator();
            while (ht.hasNext()) {
               
                HandlerType handlerType = (HandlerType)ht.next();
               
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.