public class AddStatusResponseShell extends AbstractProfileAction
StatusResponseType,
and sets it as the message returned by InOutOperationContext.getOutboundMessageContext().
The Status is set to StatusCode.SUCCESS as a default assumption,
and this can be overridden by subsequent actions.
If an issuer value is returned via a lookup strategy, then it's set as the Issuer of the message.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MSG_CTX| Modifier and Type | Field and Description |
|---|---|
private IdentifierGenerationStrategy |
idGenerator
The generator to use.
|
private com.google.common.base.Function<ProfileRequestContext,IdentifierGenerationStrategy> |
idGeneratorLookupStrategy
Strategy used to locate the
IdentifierGenerationStrategy to use. |
private String |
issuerId
EntityID to populate into Issuer element.
|
private com.google.common.base.Function<ProfileRequestContext,String> |
issuerLookupStrategy
Strategy used to obtain the response issuer value.
|
private org.slf4j.Logger |
log
Class logger.
|
private QName |
messageType
Message type to create.
|
private boolean |
overwriteExisting
Overwrite an existing message?
|
| Constructor and Description |
|---|
AddStatusResponseShell()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
void |
setIdentifierGeneratorLookupStrategy(com.google.common.base.Function<ProfileRequestContext,IdentifierGenerationStrategy> strategy)
Set the strategy used to locate the
IdentifierGenerationStrategy to use. |
void |
setIssuerLookupStrategy(com.google.common.base.Function<ProfileRequestContext,String> strategy)
Set the strategy used to locate the issuer value to use.
|
void |
setMessageType(QName type)
Set the type of message to create.
|
void |
setOverwriteExisting(boolean flag)
Set whether to overwrite an existing message.
|
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private org.slf4j.Logger log
@NonnullAfterInit private QName messageType
private boolean overwriteExisting
@Nonnull private com.google.common.base.Function<ProfileRequestContext,IdentifierGenerationStrategy> idGeneratorLookupStrategy
IdentifierGenerationStrategy to use.@Nullable private com.google.common.base.Function<ProfileRequestContext,String> issuerLookupStrategy
@Nullable private IdentifierGenerationStrategy idGenerator
public void setMessageType(@Nonnull QName type)
type - message typepublic void setOverwriteExisting(boolean flag)
flag - flag to setpublic void setIdentifierGeneratorLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,IdentifierGenerationStrategy> strategy)
IdentifierGenerationStrategy to use.strategy - lookup strategypublic void setIssuerLookupStrategy(@Nullable com.google.common.base.Function<ProfileRequestContext,String> strategy)
strategy - lookup strategyprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
doPreExecute in class AbstractProfileActionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.