Examples of HandlerChainImpl


Examples of org.apache.axis.handlers.HandlerChainImpl

        this.sendType = sendType;
    }

    public void invoke(MessageContext msgContext) throws AxisFault {
        HandlerInfoChainFactory handlerFactory = (HandlerInfoChainFactory) this.getOption(Constants.ATTR_HANDLERINFOCHAIN);
        HandlerChainImpl handlerImpl = null;
        if (handlerFactory != null) handlerImpl = (HandlerChainImpl) handlerFactory.createHandlerChain();
        boolean result = true;
       
        try {
            if (handlerImpl != null) {
                result = handlerImpl.handleRequest(msgContext);
            }

            if (result) {
                try {
                    super.invoke(msgContext);
                } catch (AxisFault e) {
                    msgContext.setPastPivot(true);
                    if (handlerImpl != null) {
                        handlerImpl.handleFault(msgContext);
                        handlerImpl.destroy();
                    }
                    throw e;
                }
            } else {
                msgContext.setPastPivot(true);
            }
            if ( handlerImpl != null) {
                handlerImpl.handleResponse(msgContext);
                handlerImpl.destroy();
            }
        } catch (SOAPFaultException e) {
            msgContext.setPastPivot(true);
            throw new AxisFault(e.getMessage());
           
View Full Code Here

Examples of org.apache.axis.handlers.HandlerChainImpl

        if (hiChainFactory == null) {
            return;
        }

        HandlerChainImpl impl =
                (HandlerChainImpl) hiChainFactory.createHandlerChain();

        if(!context.getPastPivot()) {
            impl.handleRequest(context);
        }
        else {
            impl.handleResponse(context);
        }
        impl.destroy();
    }
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.