Package org.apache.axis.handlers

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


        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();
    if (handlerImpl != null) handlerImpl.handleRequest(msgContext);

    super.invoke(msgContext);

    if ( handlerImpl != null) {
      handlerImpl.handleResponse(msgContext);
        handlerImpl.destroy();
    }
  }
View Full Code Here

        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();
    if (handlerImpl != null) handlerImpl.handleRequest(msgContext);

    super.invoke(msgContext);

    if ( handlerImpl != null) {
      handlerImpl.handleResponse(msgContext);
        handlerImpl.destroy();
    }
  }
View Full Code Here

  }

  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

        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

        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 AxisFault.makeFault(e);
           
View Full Code Here

        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();
    if (handlerImpl != null) handlerImpl.handleRequest(msgContext);

    super.invoke(msgContext);

    if ( handlerImpl != null) {
      handlerImpl.handleResponse(msgContext);
        handlerImpl.destroy();
    }
  }
View Full Code Here

        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();
        if (handlerImpl != null) handlerImpl.handleRequest(msgContext);

        super.invoke(msgContext);

        if ( handlerImpl != null) {
            handlerImpl.handleResponse(msgContext);
                handlerImpl.destroy();
        }
    }
View Full Code Here

    }

    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

        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) {
                try {
                    result = handlerImpl.handleRequest(msgContext);
                }
                catch (SOAPFaultException e) {
                    handlerImpl.handleFault(msgContext);
                    msgContext.setPastPivot(true);
                    return;
                }
            }

            if (result) {
                try {
                    super.invoke(msgContext);
                } catch (AxisFault e) {
                    msgContext.setPastPivot(true);
                    if (handlerImpl != null) {
                        handlerImpl.handleFault(msgContext);
                    }
                    throw e;
                }
            } else {
                msgContext.setPastPivot(true);
            }

            if ( handlerImpl != null) {
                handlerImpl.handleResponse(msgContext);
            }
        } catch (SOAPFaultException e) {
            msgContext.setPastPivot(true);
            throw AxisFault.makeFault(e);

        } catch (RuntimeException e) {
            SOAPFault fault = new SOAPFault(new AxisFault("Server", "Server Error", null, null));
            SOAPEnvelope env = new SOAPEnvelope();
            env.addBodyElement(fault);
            Message message = new Message(env);
            message.setMessageType(Message.RESPONSE);
            msgContext.setResponseMessage(message);
            throw AxisFault.makeFault(e);
        }
        finally {
            if (handlerImpl != null) {
                handlerImpl.destroy();
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis.handlers.HandlerChainImpl

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.