public class HttpSessionStateManagerImpl extends java.lang.Object implements StateManager
| Constructor and Description |
|---|
HttpSessionStateManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStates(java.lang.Object context)
Removes all states for the specified conext.
|
java.lang.Object |
getState(java.lang.Object context,
java.lang.Object id)
Returns the specified state.
|
java.lang.Object |
getState(java.lang.Object context,
java.lang.Object id,
Policy policy)
Returns the specified state.
|
java.lang.Object |
getUserAttributes(java.lang.Object context,
java.lang.Object id)
Returns the user attributes of the specified state.
|
void |
init(java.util.Hashtable env)
Invoked by the
DefaultContext
when the StateManager is instantiated. |
java.util.Iterator |
listStateIds(java.lang.Object context)
Returns an iterator of the save point Ids.
|
java.lang.Object |
putState(java.lang.Object context,
java.lang.Object id,
java.lang.Object state)
Registers a state.
|
java.lang.Object |
putState(java.lang.Object context,
java.lang.Object id,
java.lang.Object state,
Policy policy)
Registers a state with a management policy.
|
java.lang.Object |
putState(java.lang.Object context,
java.lang.Object id,
java.lang.Object state,
Policy policy,
java.lang.Object userAttrs)
Registers a state with a management policy.
|
java.lang.Object |
removeState(java.lang.Object context,
java.lang.Object id)
Removes the specified state.
|
java.lang.Object |
removeState(java.lang.Object context,
java.lang.Object id,
Policy policy)
Removes the specified state.
|
public void init(java.util.Hashtable env)
StateManagerDefaultContext
when the StateManager is instantiated. Custom implementations may use the
environment to perform custom initialization of the StateManager
implementation.
init in interface StateManagerenv - the default context environmentpublic java.lang.Object getState(java.lang.Object context,
java.lang.Object id)
StateManagergetState in interface StateManagercontext - the ADF context of the required stateid - the state idpublic java.lang.Object getState(java.lang.Object context,
java.lang.Object id,
Policy policy)
StateManagergetState in interface StateManagercontext - the ADF context of the required stateid - the state idpolicy - current policy object for the statepublic java.lang.Object putState(java.lang.Object context,
java.lang.Object id,
java.lang.Object state)
StateManagerputState in interface StateManagercontext - the ADF context of the stateid - the state idstate - the statepublic java.lang.Object putState(java.lang.Object context,
java.lang.Object id,
java.lang.Object state,
Policy policy)
StateManagerputState in interface StateManagercontext - the ADF context of the stateid - the state idstate - the statepolicy - the management policy.public java.lang.Object putState(java.lang.Object context,
java.lang.Object id,
java.lang.Object state,
Policy policy,
java.lang.Object userAttrs)
StateManagerputState in interface StateManagercontext - the ADF context of the stateid - the state idstate - the statepolicy - the management policy.userAttrs - user attributes to be associated with the state.public java.lang.Object removeState(java.lang.Object context,
java.lang.Object id)
StateManagerremoveState in interface StateManagercontext - the ADF context of the required stateid - the state idpublic void clearStates(java.lang.Object context)
StateManagerclearStates in interface StateManagercontext - an ADF contextpublic java.lang.Object getUserAttributes(java.lang.Object context,
java.lang.Object id)
StateManagergetUserAttributes in interface StateManagercontext - the ADF context of the required stateid - the state idpublic java.util.Iterator listStateIds(java.lang.Object context)
StateManagerlistStateIds in interface StateManagercontext - the ADF context of the required statepublic java.lang.Object removeState(java.lang.Object context,
java.lang.Object id,
Policy policy)
StateManagerremoveState in interface StateManagercontext - the ADF context of the required stateid - the state idpolicy - the management policy.