Class AddChannelBindingsHeaderHandler
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.messaging.handler.AbstractMessageHandler
-
- org.opensaml.saml.common.binding.impl.AddChannelBindingsHeaderHandler
-
- All Implemented Interfaces:
net.shibboleth.utilities.java.support.component.Component,net.shibboleth.utilities.java.support.component.DestructableComponent,net.shibboleth.utilities.java.support.component.InitializableComponent,org.opensaml.messaging.handler.MessageHandler
public class AddChannelBindingsHeaderHandler extends org.opensaml.messaging.handler.AbstractMessageHandlerMessageHandler to addChannelBindingsheaders to an outgoing SOAP envelope.
-
-
Field Summary
Fields Modifier and Type Field Description private org.opensaml.saml.common.messaging.context.ChannelBindingsContextchannelBindingsContextThe ChannelBindingsContext to operate on.private Function<org.opensaml.messaging.context.MessageContext,org.opensaml.saml.common.messaging.context.ChannelBindingsContext>channelBindingsContextLookupStrategyStrategy used to locate theChannelBindingsContextto operate on.private LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description AddChannelBindingsHeaderHandler()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInvoke(org.opensaml.messaging.context.MessageContext messageContext)protected booleandoPreInvoke(org.opensaml.messaging.context.MessageContext messageContext)voidsetChannelBindingsContextLookupStrategy(Function<org.opensaml.messaging.context.MessageContext,org.opensaml.saml.common.messaging.context.ChannelBindingsContext> strategy)Set the strategy used to locate theChannelBindingsContextto operate on.-
Methods inherited from class org.opensaml.messaging.handler.AbstractMessageHandler
doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final Logger log
Class logger.
-
channelBindingsContextLookupStrategy
@Nonnull private Function<org.opensaml.messaging.context.MessageContext,org.opensaml.saml.common.messaging.context.ChannelBindingsContext> channelBindingsContextLookupStrategy
Strategy used to locate theChannelBindingsContextto operate on.
-
channelBindingsContext
@Nullable private org.opensaml.saml.common.messaging.context.ChannelBindingsContext channelBindingsContext
The ChannelBindingsContext to operate on.
-
-
Method Detail
-
setChannelBindingsContextLookupStrategy
public void setChannelBindingsContextLookupStrategy(@Nonnull Function<org.opensaml.messaging.context.MessageContext,org.opensaml.saml.common.messaging.context.ChannelBindingsContext> strategy)Set the strategy used to locate theChannelBindingsContextto operate on.- Parameters:
strategy- lookup strategy
-
doPreInvoke
protected boolean doPreInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException- Overrides:
doPreInvokein classorg.opensaml.messaging.handler.AbstractMessageHandler- Throws:
org.opensaml.messaging.handler.MessageHandlerException
-
doInvoke
protected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException- Specified by:
doInvokein classorg.opensaml.messaging.handler.AbstractMessageHandler- Throws:
org.opensaml.messaging.handler.MessageHandlerException
-
-