public class AddMessageIDHandler extends AbstractHeaderGeneratingMessageHandler
The value from WSAddressingContext.getMessageIDURI()
will be used, if present. If not,
then the value generated via the locally-configured strategy getIdentifierGenerationStrategy()
will be used. If neither of those sources are available, then a random "urn:uuid:..." URI value will be
generated internally using UUID
.
Modifier and Type | Field and Description |
---|---|
private IdentifierGenerationStrategy |
identifierGenerationStrategy
Strategy for generating identifiers.
|
private org.slf4j.Logger |
log
Logger.
|
Constructor and Description |
---|
AddMessageIDHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInvoke(org.opensaml.messaging.context.MessageContext messageContext) |
IdentifierGenerationStrategy |
getIdentifierGenerationStrategy()
Get the identifier generation strategy.
|
protected String |
getMessageID(org.opensaml.messaging.context.MessageContext messageContext)
Get the effective message ID value to issue in the outbound message.
|
void |
setIdentifierGenerationStrategy(IdentifierGenerationStrategy strategy)
Set the identifier generation strategy.
|
decorateGeneratedHeader, doPreInvoke, getEffectiveTargetNode, isEffectiveMustUnderstand, setMustUnderstand, setMustUnderstandStrategy, setTargetNode, setTargetNodeStrategy
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 org.slf4j.Logger log
private IdentifierGenerationStrategy identifierGenerationStrategy
@Nullable public IdentifierGenerationStrategy getIdentifierGenerationStrategy()
public void setIdentifierGenerationStrategy(@Nullable IdentifierGenerationStrategy strategy)
strategy
- the new strategyprotected void doInvoke(@Nonnull org.opensaml.messaging.context.MessageContext messageContext) throws org.opensaml.messaging.handler.MessageHandlerException
doInvoke
in class org.opensaml.messaging.handler.AbstractMessageHandler
org.opensaml.messaging.handler.MessageHandlerException
Copyright © 1999–2018 Shibboleth Consortium. All rights reserved.