public class HandlerChainInvoker extends Object
Constructor and Description |
---|
HandlerChainInvoker(List<Handler> hc) |
HandlerChainInvoker(List<Handler> hc,
boolean isOutbound) |
Modifier and Type | Method and Description |
---|---|
void |
adoptLogicalHandlers(HandlerChainInvoker invoker)
Allows an the logical handler chain for one invoker to be used as an
alternate chain for another.
|
boolean |
faultRaised() |
Exception |
getFault() |
List<LogicalHandler<?>> |
getLogicalHandlers() |
LogicalMessageContext |
getLogicalMessageContext() |
List<Handler<?>> |
getProtocolHandlers() |
MessageContext |
getProtocolMessageContext() |
boolean |
invokeLogicalHandlers(boolean requestor,
LogicalMessageContext context) |
boolean |
invokeLogicalHandlersHandleFault(boolean requestor,
LogicalMessageContext context) |
boolean |
invokeProtocolHandlers(boolean requestor,
MessageContext context) |
boolean |
invokeProtocolHandlersHandleFault(boolean requestor,
MessageContext context) |
boolean |
isClosed()
Indicates that the invoker is closed.
|
boolean |
isInbound() |
boolean |
isOutbound() |
boolean |
isRequestor()
We need HandlerChainInvoker behaves differently on the client and server
side.
|
boolean |
isResponseExpected() |
void |
mepComplete(Message message)
Invoke handlers at the end of an MEP calling close on each.
|
void |
setFault(boolean fe) |
protected void |
setFault(Exception ex) |
void |
setInbound() |
void |
setLogicalMessageContext(LogicalMessageContext mc) |
void |
setOutbound() |
void |
setProtocolMessageContext(MessageContext mc) |
void |
setRequestor(boolean requestor) |
void |
setResponseExpected(boolean expected) |
public List<LogicalHandler<?>> getLogicalHandlers()
public LogicalMessageContext getLogicalMessageContext()
public void setLogicalMessageContext(LogicalMessageContext mc)
public MessageContext getProtocolMessageContext()
public void setProtocolMessageContext(MessageContext mc)
public boolean invokeLogicalHandlers(boolean requestor, LogicalMessageContext context)
public boolean invokeLogicalHandlersHandleFault(boolean requestor, LogicalMessageContext context)
public boolean invokeProtocolHandlers(boolean requestor, MessageContext context)
public boolean invokeProtocolHandlersHandleFault(boolean requestor, MessageContext context)
public void setResponseExpected(boolean expected)
public boolean isResponseExpected()
public boolean isOutbound()
public boolean isInbound()
public boolean isRequestor()
public void setRequestor(boolean requestor)
public void setInbound()
public void setOutbound()
public boolean faultRaised()
public Exception getFault()
public void setFault(boolean fe)
public void mepComplete(Message message)
public boolean isClosed()
public void adoptLogicalHandlers(HandlerChainInvoker invoker)
invoker
- the invoker encalsulting the alternate logical handler
chainprotected final void setFault(Exception ex)
Apache CXF