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);