Package net.shibboleth.sp.context
Class StateDataContext
java.lang.Object
org.opensaml.messaging.context.BaseContext
net.shibboleth.sp.context.StateDataContext
- All Implemented Interfaces:
Iterable<BaseContext>
A context to hold state information about a request.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext
BaseContext.ContextSetNoRemoveIteratorDecorator, BaseContext.DeprecatedContextClassNameLookAside -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the state tracked for a request.Get the token associated with the state after preservation or before recovery.setStateData(StateData state) Sets the state tracked for a request.setStateToken(String token) Set the token associated with the state after preservation or before recovery.Methods inherited from class org.opensaml.messaging.context.BaseContext
addSubcontext, addSubcontext, clearSubcontexts, containsSubcontext, createSubcontext, ensureSubcontext, ensureSubcontext, getParent, getSubcontext, getSubcontext, getSubcontext, getSubcontext, iterator, removeFromParent, removeSubcontext, removeSubcontext, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
stateToken
A string token that represents the preserved or "to be recovered" state data. -
stateData
The request state data.
-
-
Constructor Details
-
StateDataContext
public StateDataContext()
-
-
Method Details
-
getStateToken
Get the token associated with the state after preservation or before recovery.- Returns:
- state token
-
setStateToken
Set the token associated with the state after preservation or before recovery.- Parameters:
token- state token- Returns:
- this context
-
getStateData
Get the state tracked for a request.- Returns:
- the state data object
-
setStateData
Sets the state tracked for a request.- Parameters:
state- state data to set- Returns:
- this context
-