|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sssw.atg.persist.AgoPersistentStateManager
Class that provides the programmer with a mechanism for the management and recovery of persistent application state.
Constructor Summary | |
AgoPersistentStateManager()
|
Method Summary | |
void |
clear()
Clears this AgoPersistentStateManager so that it contains no keys and values. |
boolean |
commit()
Commits all key/value pairs that have been stored in this AgoPersistentStateManager to the persistent store. |
Integer |
evaluateState(AgiHttpServletRequest req,
AgiHttpServletResponse resp)
Evaluates the current state of this AgoPersistentStateManager object by comparing a cached persistent session ID to a persistent session ID that is stored in a temporary cookie in the browser. |
Object |
get(Serializable key)
Returns the value to which the specified key is mapped in the AgoPersistentStateManager; returns null if the key is not mapped to any value in the AgoPersistentStateManager. |
boolean |
getAutoCommit()
Returns the boolean value of the autocommit property within the AgoPersistentStateManager. |
static AgoPersistentStateManager |
getPersistentStateManager(AgiHttpServletRequest req,
AgiHttpServletResponse resp,
String appID)
Static factory method that returns a PersistentStateManager object containing the current state of the application. |
Hashtable |
getStateHashtable()
Returns a hashtable containing all of the key/value pairs that have been stored in this AgoPersistentStateManager object. |
Integer |
getStatus()
Returns an Integer representing the status of the AgoPersistentStateManager. |
void |
put(Serializable key,
Serializable value)
Maps the specified key to the specified value in the AgoPersistentStateManager. |
void |
remove(Serializable key)
Removes the key (and its corresponding value) from this AgoPersistentStateManager. |
void |
setAutoCommit(boolean flag)
Sets the autocommit property of this AgoPersistentStateManager. |
void |
setAutoCommit(boolean flag,
boolean commitImmediate)
Sets the autocommit property of this AgoPersistentStateManager. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public AgoPersistentStateManager()
Method Detail |
public static AgoPersistentStateManager getPersistentStateManager(AgiHttpServletRequest req, AgiHttpServletResponse resp, String appID) throws Exception
req
- The request from which the AgoPersistentStateManager object evaluates
the current application state.resp
- The response on which the AgoPersistentStateManager object will set
a temporary cookie holding the current persistent session ID.appID
- A String representing the application for which you would like an
AgoPersistentStateManager object. This String must match an application ID that
has been defined in the PersistentSession.props file.public void put(Serializable key, Serializable value)
key
- An AgoPersistentStateManager keyvalue
- The valuepublic Object get(Serializable key)
key
- A key in the AgoPersistentStateManagerpublic void remove(Serializable key)
key
- An AgoPersistentStateManager keypublic void clear()
public boolean commit()
public Hashtable getStateHashtable()
public Integer getStatus()
public void setAutoCommit(boolean flag) throws Exception
flag
- boolean indicating whether autocommit is true or falsepublic void setAutoCommit(boolean flag, boolean commitImmediate) throws Exception
flag
- boolean indicating whether autocommit is true or falsecommitImmediate
- boolean indicating whether the autocommit property (and all pending
key/value pairs) should be committed immediately to the persistent store or committed when the
next explicit commit is issued.public boolean getAutoCommit()
public Integer evaluateState(AgiHttpServletRequest req, AgiHttpServletResponse resp) throws Exception
req
- The request from which the AgoPersistentStateManager object evaluates
the current application state. This method returns an Integer representing the status
of the AgoPersistentStateManager.resp
- The response on which the AgoPersistentStateManager object will set
a temporary cookie holding the current persistent session ID.
|
SilverStream Application Server 3.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |