public class AddResponseShell extends AbstractProfileAction
Response
, 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.
EventIds.PROCEED_EVENT_ID
, EventIds.INVALID_MSG_CTX
, EventIds.INVALID_PROFILE_CTX
Modifier and Type | Field and Description |
---|---|
private net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy |
idGenerator
The generator to use.
|
private com.google.common.base.Function<ProfileRequestContext,net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy> |
idGeneratorLookupStrategy
Strategy used to locate the
IdentifierGenerationStrategy to use. |
private org.slf4j.Logger |
log
Class logger.
|
private boolean |
overwriteExisting
Overwrite an existing message?
|
Constructor and Description |
---|
AddResponseShell()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
void |
setIdentifierGeneratorLookupStrategy(com.google.common.base.Function<ProfileRequestContext,net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy> strategy)
Set the strategy used to locate the
IdentifierGenerationStrategy to use. |
void |
setOverwriteExisting(boolean flag)
Set whether to overwrite an existing message.
|
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
@Nonnull private org.slf4j.Logger log
@Nonnull private com.google.common.base.Function<ProfileRequestContext,net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy> idGeneratorLookupStrategy
IdentifierGenerationStrategy
to use.private boolean overwriteExisting
@Nullable private net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy idGenerator
public void setOverwriteExisting(boolean flag)
flag
- flag to setpublic void setIdentifierGeneratorLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy> strategy)
IdentifierGenerationStrategy
to use.strategy
- lookup strategyprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
doPreExecute
in class AbstractProfileAction
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute
in class AbstractProfileAction
Copyright © 1999–2020 Shibboleth Consortium. All rights reserved.