MessageType
- the type of message being processed.public abstract class AbstractHeaderGeneratingMessageHandler<MessageType> extends AbstractMessageHandler<MessageType>
Modifier and Type | Field and Description |
---|---|
private boolean |
effectiveMustUnderstand
The effective mustUnderstand value to use.
|
private String |
effectiveTargetNode
The effective target node value to use.
|
private boolean |
mustUnderstand
The statically configured value for mustUnderstand.
|
private Predicate<MessageContext<MessageType>> |
mustUnderstandStrategy
Predicate strategy for evaluating mustUnderstand from the message context.
|
private String |
targetNode
The statically configured value for target node (SOAP 1.1 actor or SOAP 1.2 role).
|
private Function<MessageContext<MessageType>,String> |
targetNodeStrategy
Function strategy for resolving target node from the message context.
|
Constructor and Description |
---|
AbstractHeaderGeneratingMessageHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
decorateGeneratedHeader(MessageContext messageContext,
org.opensaml.core.xml.XMLObject header)
Decorate the header based on configured and/or resolved values.
|
protected boolean |
doPreInvoke(MessageContext messageContext) |
protected String |
getEffectiveTargetNode()
Get the effective value for target node (SOAP 1.1 actor or SOAP 1.2 role).
|
protected boolean |
isEffectiveMustUnderstand()
Get the effective value for mustUnderstand.
|
void |
setMustUnderstand(boolean flag)
Set the statically configured value for mustUnderstand.
|
void |
setMustUnderstandStrategy(Predicate<MessageContext<MessageType>> strategy)
Set the predicate strategy for evaluating mustUnderstand from the message context.
|
void |
setTargetNode(String node)
Set the statically configured value for target node (SOAP 1.1 actor or SOAP 1.2 role).
|
void |
setTargetNodeStrategy(Function<MessageContext<MessageType>,String> strategy)
Set the predicate strategy for evaluating mustUnderstand from the message context.
|
doInvoke, doPostInvoke, doPostInvoke, getActivationCondition, getLogPrefix, invoke, setActivationCondition
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
private boolean mustUnderstand
@Nullable private Predicate<MessageContext<MessageType>> mustUnderstandStrategy
private boolean effectiveMustUnderstand
@Nullable private String targetNode
@Nullable private Function<MessageContext<MessageType>,String> targetNodeStrategy
private String effectiveTargetNode
public AbstractHeaderGeneratingMessageHandler()
public void setMustUnderstand(boolean flag)
flag
- true if header must be understood, false if notpublic void setMustUnderstandStrategy(@Nullable Predicate<MessageContext<MessageType>> strategy)
strategy
- the predicate strategyprotected boolean isEffectiveMustUnderstand()
public void setTargetNode(@Nullable String node)
node
- the target node, may be nullpublic void setTargetNodeStrategy(@Nullable Function<MessageContext<MessageType>,String> strategy)
strategy
- the predicate strategyprotected String getEffectiveTargetNode()
protected boolean doPreInvoke(@Nonnull MessageContext messageContext) throws MessageHandlerException
doPreInvoke
in class AbstractMessageHandler<MessageType>
MessageHandlerException
protected void decorateGeneratedHeader(@Nonnull MessageContext messageContext, @Nonnull org.opensaml.core.xml.XMLObject header)
messageContext
- the current message contextheader
- the header to decorateCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.