Package net.shibboleth.sp.profile.impl
Class CreateOutputMessage
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
org.opensaml.profile.action.AbstractProfileAction
org.opensaml.profile.action.AbstractConditionalProfileAction
net.shibboleth.idp.profile.AbstractProfileAction
net.shibboleth.sp.profile.AbstractAgentRequestAction
net.shibboleth.sp.profile.impl.CreateOutputMessage
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
A profile action to build the "shell" of an Agent response (a DDF), optionally
including the
RemotedHttpServletResponse.STRUCTURE_NAME member and wrapped
response facade to leave subsequent actions with a consistent state to operate on.
As a side effect, this action uses its base class to ensure that the containing
AgentRequestContext is also created.
- Event:
EventIds.PROCEED_EVENT_ID- Postcondition:
AgentRequestContext.getOutput().isstruct()
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether to create the remoted servlet response wrapper.private booleanWhether to replace an existing output message if one exists. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) voidsetCreateServletResponse(boolean flag) Sets whether to create the remoted servlet response wrapper.voidsetOverwriteExisting(boolean flag) Sets whether to replace an existing output message if one exists.Methods inherited from class net.shibboleth.sp.profile.AbstractAgentRequestAction
doPreExecute, ensureAgentRequestContext, getAgentRequestContext, setAgentRequestContextLookupStrategyMethods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
overwriteExisting
private boolean overwriteExistingWhether to replace an existing output message if one exists. -
createServletResponse
private boolean createServletResponseWhether to create the remoted servlet response wrapper.
-
-
Constructor Details
-
CreateOutputMessage
public CreateOutputMessage()Constructor.
-
-
Method Details
-
setOverwriteExisting
public void setOverwriteExisting(boolean flag) Sets whether to replace an existing output message if one exists.This also applies to the remoted servlet response wrapper if that option is enabled.
Defaults to false.
- Parameters:
flag- flag to set
-
setCreateServletResponse
public void setCreateServletResponse(boolean flag) Sets whether to create the remoted servlet response wrapper.Defaults to false.
- Parameters:
flag- flag to set
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-