Package org.apache.cxf.jaxws.handler
Class HandlerChainInvoker
java.lang.Object
org.apache.cxf.jaxws.handler.HandlerChainInvoker
invoke the handlers in a registered handler chain
-
Constructor Summary
ConstructorDescriptionHandlerChainInvoker
(List<jakarta.xml.ws.handler.Handler> hc) HandlerChainInvoker
(List<jakarta.xml.ws.handler.Handler> hc, boolean isOutbound) -
Method Summary
Modifier and TypeMethodDescriptionvoid
adoptLogicalHandlers
(HandlerChainInvoker invoker) Allows an the logical handler chain for one invoker to be used as an alternate chain for another.boolean
getFault()
List<jakarta.xml.ws.handler.LogicalHandler<?>>
jakarta.xml.ws.handler.LogicalMessageContext
List<jakarta.xml.ws.handler.Handler<?>>
jakarta.xml.ws.handler.MessageContext
boolean
invokeLogicalHandlers
(boolean requestor, jakarta.xml.ws.handler.LogicalMessageContext context) boolean
invokeLogicalHandlersHandleFault
(boolean requestor, jakarta.xml.ws.handler.LogicalMessageContext context) boolean
invokeProtocolHandlers
(boolean requestor, jakarta.xml.ws.handler.MessageContext context) boolean
invokeProtocolHandlersHandleFault
(boolean requestor, jakarta.xml.ws.handler.MessageContext context) boolean
isClosed()
Indicates that the invoker is closed.boolean
boolean
boolean
We need HandlerChainInvoker behaves differently on the client and server side.boolean
void
mepComplete
(org.apache.cxf.message.Message message) Invoke handlers at the end of an MEP calling close on each.void
setFault
(boolean fe) protected final void
void
void
setLogicalMessageContext
(jakarta.xml.ws.handler.LogicalMessageContext mc) void
void
setProtocolMessageContext
(jakarta.xml.ws.handler.MessageContext mc) void
setRequestor
(boolean requestor) void
setResponseExpected
(boolean expected)
-
Constructor Details
-
HandlerChainInvoker
-
HandlerChainInvoker
-
-
Method Details
-
getLogicalHandlers
-
getProtocolHandlers
-
getLogicalMessageContext
public jakarta.xml.ws.handler.LogicalMessageContext getLogicalMessageContext() -
setLogicalMessageContext
public void setLogicalMessageContext(jakarta.xml.ws.handler.LogicalMessageContext mc) -
getProtocolMessageContext
public jakarta.xml.ws.handler.MessageContext getProtocolMessageContext() -
setProtocolMessageContext
public void setProtocolMessageContext(jakarta.xml.ws.handler.MessageContext mc) -
invokeLogicalHandlers
public boolean invokeLogicalHandlers(boolean requestor, jakarta.xml.ws.handler.LogicalMessageContext context) -
invokeLogicalHandlersHandleFault
public boolean invokeLogicalHandlersHandleFault(boolean requestor, jakarta.xml.ws.handler.LogicalMessageContext context) -
invokeProtocolHandlers
public boolean invokeProtocolHandlers(boolean requestor, jakarta.xml.ws.handler.MessageContext context) -
invokeProtocolHandlersHandleFault
public boolean invokeProtocolHandlersHandleFault(boolean requestor, jakarta.xml.ws.handler.MessageContext context) -
setResponseExpected
public void setResponseExpected(boolean expected) -
isResponseExpected
public boolean isResponseExpected() -
isOutbound
public boolean isOutbound() -
isInbound
public boolean isInbound() -
isRequestor
public boolean isRequestor()We need HandlerChainInvoker behaves differently on the client and server side. For the client side, as there is no inbound faultChain, we need to call handleFault and close within HandlerChainInvoker directly. -
setRequestor
public void setRequestor(boolean requestor) -
setInbound
public void setInbound() -
setOutbound
public void setOutbound() -
faultRaised
public boolean faultRaised() -
getFault
-
setFault
public void setFault(boolean fe) -
mepComplete
public void mepComplete(org.apache.cxf.message.Message message) Invoke handlers at the end of an MEP calling close on each. The handlers must be invoked in the reverse order that they appear in the handler chain. On the server side this will not be the reverse order in which they were invoked so use the handler chain directly and not simply the invokedHandler list. -
isClosed
public boolean isClosed()Indicates that the invoker is closed. When closed, only -
adoptLogicalHandlers
Allows an the logical handler chain for one invoker to be used as an alternate chain for another.- Parameters:
invoker
- the invoker encalsulting the alternate logical handler chain
-
setFault
-