Package javax.xml.rpc.handler

Examples of javax.xml.rpc.handler.HandlerChain


    }


    private void initHandlerChain(QName portName, HandlerRegistry handlerRegistry,
            HandlerInfo handlerref, ArrayList soaprolesToAdd) {
        HandlerChain handlerList = (HandlerChain) handlerRegistry.getHandlerChain(portName);
        handlerList.add(handlerref);
        String[] soaprolesRegistered = handlerList.getRoles();
        String [] soaproles = new String[soaprolesRegistered.length + soaprolesToAdd.size()];
        int i;
        for (i = 0;i < soaprolesRegistered.length; i++)
            soaproles[i] = soaprolesRegistered[i];
        for (int j = 0; j < soaprolesToAdd.size(); j++)
            soaproles[i+j] = (String) soaprolesToAdd.get(j);
        handlerList.setRoles(soaproles);
        handlerRegistry.setHandlerChain(portName, handlerList);
    }
View Full Code Here


        SEIFactory seiFactory = (SEIFactory) portNameToSEIFactoryMap.get(portName);
        if (seiFactory == null) {
            return null;
        }
        HandlerChain handlerChain = seiFactory.createHandlerChain();
        return handlerChain;

    }
View Full Code Here

    public List getHandlerInfos() {
        return this.handlerInfos;
    }

    public HandlerChain createHandlerChain() {
        HandlerChain hc = new HandlerChainImpl(handlerInfos);
        hc.setRoles(getRoles());
        return hc;
       
    }
View Full Code Here

    }


    private void initHandlerChain(QName portName, HandlerRegistry handlerRegistry,
            HandlerInfo handlerInfo, ArrayList<String> soaprolesToAdd) {
        HandlerChain handlerChain = (HandlerChain) handlerRegistry.getHandlerChain(portName);
        @SuppressWarnings("unchecked")
        Iterator<Handler> iter = handlerChain.iterator();
        while (iter.hasNext()) {
            Handler handler = iter.next();
            handler.init(handlerInfo);
        }
        String[] soaprolesRegistered = handlerChain.getRoles();
        String [] soaproles = new String[soaprolesRegistered.length + soaprolesToAdd.size()];
        int i;
        for (i = 0;i < soaprolesRegistered.length; i++)
            soaproles[i] = soaprolesRegistered[i];
        for (int j = 0; j < soaprolesToAdd.size(); j++)
            soaproles[i+j] = soaprolesToAdd.get(j);
        handlerChain.setRoles(soaproles);
        handlerRegistry.setHandlerChain(portName, handlerChain);
    }
View Full Code Here

TOP

Related Classes of javax.xml.rpc.handler.HandlerChain

Copyright © 2018 www.massapicom. 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.