Package org.apache.axis2.jaxws.handler
Class HandlerChainProcessor
java.lang.Object
org.apache.axis2.jaxws.handler.HandlerChainProcessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionHandlerChainProcessor(List<jakarta.xml.ws.handler.Handler> chain, Protocol proto) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconvertToFaultMessage(MEPContext mepCtx, Exception e, Protocol protocol) static voidconvertToFaultMessage(MEPContext mepCtx, Exception e, Protocol protocol, boolean checkMsg) Converts the Exception into an XML Fault Message that is stored on the MEPContext.booleanprocessChain(MEPContext mepCtx, HandlerChainProcessor.Direction direction, HandlerChainProcessor.MEP mep, boolean expectResponse) booleanprocessChainForClose(MEPContext mepCtx, HandlerChainProcessor.Direction direction) voidprocessFault(MEPContext mepCtx, HandlerChainProcessor.Direction direction) static voidtrackInternalCall(MessageContext mc, HandlerChainProcessor.TRACKER tracker)
-
Constructor Details
-
HandlerChainProcessor
-
-
Method Details
-
processChain
public boolean processChain(MEPContext mepCtx, HandlerChainProcessor.Direction direction, HandlerChainProcessor.MEP mep, boolean expectResponse) - Parameters:
mc- By the time processChain method is called, we already have the sorted chain, and now we have the direction, MEP, MessageContext, and if a response is expected. We should be able to handle everything from here, no pun intended. Two things a user of processChain should check when the method completes: 1. Has the MessageContext.MESSAGE_OUTBOUND_PROPERTY changed, indicating reversal of message direction 2. Has the message been converted to a fault message? (indicated by a flag in the message)
-
processChainForClose
-
processFault
-
convertToFaultMessage
-
convertToFaultMessage
public static void convertToFaultMessage(MEPContext mepCtx, Exception e, Protocol protocol, boolean checkMsg) Converts the Exception into an XML Fault Message that is stored on the MEPContext. Note that if the forceConversion flag is true, this conversion will always occur. If the checkMsg flag is true, this conversion only occurs if the Message is not already a Fault (per 9,3,2.1 of the JAX-WS specification)- Parameters:
mepCtx- MEPContexte- Exceptionprotocol- ProtocolforceConversion- If true, the Exception is always converted to a Message
-
trackInternalCall
-