Package net.shibboleth.idp.profile.impl
Class InitializeProfileRequestContext
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.idp.profile.impl.InitializeProfileRequestContext
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Action that creates a new
ProfileRequestContext and binds it to the current conversation under the
ProfileRequestContext.BINDING_KEY key, and sets the profile and logging IDs, if provided.
This is a native SWF action in order to access conversation scope.
Optionally saves off query parameters from request into a ScratchContext.
- Event:
EventIds.PROCEED_EVENT_ID- Postcondition:
- RequestContext.getConversationScope().get(ProfileRequestContext.BINDING_KEY) != null
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanWhether this is a browser-based profile request.private booleanWhether to capture and store off query parameters.private StringBackup profile ID to populate as a legacy value.private StringThe logging ID to initialize the context to.private StringThe profile ID to initialize the context to. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(RequestContext springRequestContext) voidsetBrowserProfile(boolean browser) Set whether the request is browser-based, defaults to false.voidsetCaptureQueryParameters(boolean flag) Set whether to capture incoming query parameters in aScratchContext, defaults to false.voidSet the legacy/fallback profile ID to populate into the context.voidsetLoggingId(String id) Set the logging ID to populate into the context.voidsetProfileId(String id) Set the profile ID to populate into the context.Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
doPreExecute, getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doExecute, 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
-
profileId
The profile ID to initialize the context to. -
legacyProfileId
Backup profile ID to populate as a legacy value. -
loggingId
The logging ID to initialize the context to. -
browserProfile
private boolean browserProfileWhether this is a browser-based profile request. -
captureQueryParameters
private boolean captureQueryParametersWhether to capture and store off query parameters.
-
-
Constructor Details
-
InitializeProfileRequestContext
public InitializeProfileRequestContext()
-
-
Method Details
-
setProfileId
Set the profile ID to populate into the context.- Parameters:
id- profile ID to populate into the context
-
setLegacyProfileId
Set the legacy/fallback profile ID to populate into the context.- Parameters:
id- legacy profile ID to populate into the context- Since:
- 4.2.0
-
setLoggingId
Set the logging ID to populate into the context.- Parameters:
id- logging ID to populate into the context
-
setBrowserProfile
public void setBrowserProfile(boolean browser) Set whether the request is browser-based, defaults to false.- Parameters:
browser- flag to set
-
setCaptureQueryParameters
public void setCaptureQueryParameters(boolean flag) Set whether to capture incoming query parameters in aScratchContext, defaults to false.- Parameters:
flag- flag to set- Since:
- 4.1.0
-
execute
- Specified by:
executein interfaceAction- Overrides:
executein classAbstractProfileAction
-