|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScriptSessionManager
A ScriptSessionManager looks after a number of sessions (keyed using a Javascript variable)
Field Summary | |
---|---|
static long |
DEFAULT_TIMEOUT_MILLIS
The default length of time a session can go unused before it automatically becomes invalid and is recycled. |
Method Summary | |
---|---|
java.util.Collection |
getAllScriptSessions()
Get a list of all the currently known ScriptSessions by id. |
RealScriptSession |
getScriptSession(java.lang.String id)
For a given script session id, either create a new ScriptSession object or retrieve an existing one if one exists. |
java.util.Collection |
getScriptSessionsByPage(java.lang.String url)
For a given script session id, either create a new ScriptSession object or retrieve an existing one if one exists. |
long |
getScriptSessionTimeout()
Accessor for the time (in milliseconds) when unused ScriptSessions will expire |
void |
setPageForScriptSession(RealScriptSession scriptSession,
java.lang.String url)
Locate the given script session on a page |
void |
setScriptSessionTimeout(long scriptSessionTimeout)
Accessor for the time (in milliseconds) when unused ScriptSessions will expire |
Field Detail |
---|
static final long DEFAULT_TIMEOUT_MILLIS
Method Detail |
---|
java.util.Collection getAllScriptSessions()
java.util.Collection getScriptSessionsByPage(java.lang.String url)
url
- The URL including 'http://', up to (but not including) '?' or '#'
RealScriptSession getScriptSession(java.lang.String id)
id
- The id to get a ScriptSession object for
void setPageForScriptSession(RealScriptSession scriptSession, java.lang.String url)
scriptSession
- The session to locate on a pageurl
- The URL including 'http://', up to (but not including) '?' or '#'long getScriptSessionTimeout()
void setScriptSessionTimeout(long scriptSessionTimeout)
scriptSessionTimeout
- the timeout to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |