Package org.jibx.ws.server

Examples of org.jibx.ws.server.HandlerDefinition


     * @throws WsException on error creating handlers
     */
    private void createHeaderHandlers(ServiceDefinition sdef, OutContext outCtx, InContext inCtx) throws WsException {
        if (sdef.getHandlerDefinitions() != null) {
            for (int i = 0; i < sdef.getHandlerDefinitions().size(); i++) {
                HandlerDefinition hdef = (HandlerDefinition) sdef.getHandlerDefinitions().get(i);
                Object handler = hdef.getObject();
                if (handler instanceof InHandler) {
                    inCtx.addHandler(SoapPhase.HEADER, (InHandler) handler);
                } else if (handler instanceof OutHandler) {
                    outCtx.addHandler(SoapPhase.HEADER, (OutHandler) handler);
                }
View Full Code Here


    static Service createSoapServiceWithHandler(String handlerMethodName, String handlerId, Class handlerClass)
        throws NoSuchMethodException, JiBXException, WsException {

        ServiceDefinition sdef = getServiceDefinition(handlerMethodName);
        HandlerDefinition hdef = new HandlerDefinition();
        hdef.setClassName(handlerClass.getName());
        sdef.setHandlerDefinitions(Arrays.asList(new HandlerDefinition[] { hdef }));
        sdef.init();

        ServiceFactory serviceFactory = ProtocolDirectory.getProtocol(sdef.getProtocolName()).getServiceFactory();
        return ServicePool.getInstance(serviceFactory, sdef);
View Full Code Here

TOP

Related Classes of org.jibx.ws.server.HandlerDefinition

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.