public class AddChannelBindingsHeaderHandler extends AbstractMessageHandler
ChannelBindings headers to an outgoing SOAP envelope.| Modifier and Type | Field and Description |
|---|---|
private ChannelBindingsContext |
channelBindingsContext
The ChannelBindingsContext to operate on.
|
private com.google.common.base.Function<MessageContext,ChannelBindingsContext> |
channelBindingsContextLookupStrategy
Strategy used to locate the
ChannelBindingsContext to operate on. |
private org.slf4j.Logger |
log
Class logger.
|
| Constructor and Description |
|---|
AddChannelBindingsHeaderHandler()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInvoke(MessageContext messageContext)
Performs the handler logic.
|
protected boolean |
doPreInvoke(MessageContext messageContext)
Called prior to execution, handlers may override this method to perform pre-processing for a request.
|
void |
setChannelBindingsContextLookupStrategy(com.google.common.base.Function<MessageContext,ChannelBindingsContext> strategy)
Set the strategy used to locate the
ChannelBindingsContext to operate on. |
doPostInvoke, doPostInvoke, getLogPrefix, invokedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<MessageContext,ChannelBindingsContext> channelBindingsContextLookupStrategy
ChannelBindingsContext to operate on.@Nullable private ChannelBindingsContext channelBindingsContext
public AddChannelBindingsHeaderHandler()
public void setChannelBindingsContextLookupStrategy(@Nonnull
com.google.common.base.Function<MessageContext,ChannelBindingsContext> strategy)
ChannelBindingsContext to operate on.strategy - lookup strategyprotected boolean doPreInvoke(@Nonnull
MessageContext messageContext)
throws MessageHandlerException
If false is returned, execution will not proceed.
If returning successfully, the last step should be to return the result of the superclass version of this method.
doPreInvoke in class AbstractMessageHandlermessageContext - the message context on which to invoke the handlerMessageHandlerException - if there is a problem executing the handler pre-routineprotected void doInvoke(@Nonnull
MessageContext messageContext)
throws MessageHandlerException
doInvoke in class AbstractMessageHandlermessageContext - the message context on which to invoke the handlerMessageHandlerException - if there is an error invoking the handler on the message context