|
||||||||||
| 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 | |
|---|---|
void |
addScriptSessionListener(ScriptSessionListener li)
Maintain the list of ScriptSessionListeners |
RealScriptSession |
createScriptSession(java.lang.String url,
java.lang.String httpSessionId)
When a new client page-loads, we create a script session. |
java.util.Collection<ScriptSession> |
getAllScriptSessions()
Get a list of all the currently known ScriptSessions by id. |
RealScriptSession |
getScriptSession(java.lang.String id,
java.lang.String url,
java.lang.String httpSessionId)
For a given script session id, return the related ScriptSession object or null if the id is not known. |
java.util.Collection<ScriptSession> |
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 |
removeScriptSessionListener(ScriptSessionListener li)
Maintain the list of ScriptSessionListeners |
| Field Detail |
|---|
static final long DEFAULT_TIMEOUT_MILLIS
| Method Detail |
|---|
java.util.Collection<ScriptSession> getAllScriptSessions()
java.util.Collection<ScriptSession> getScriptSessionsByPage(java.lang.String url)
url - The URL including 'http://', up to (but not including) '?' or '#'
RealScriptSession getScriptSession(java.lang.String id,
java.lang.String url,
java.lang.String httpSessionId)
id - The id to get a ScriptSession object forurl - The URL including 'http://', up to (but not including) '?' or '#' (or null if not known)httpSessionId - The session ID (or null if not known)
RealScriptSession createScriptSession(java.lang.String url,
java.lang.String httpSessionId)
url - The URL including 'http://', up to (but not including) '?' or '#'httpSessionId - The session ID (or null if not known)
long getScriptSessionTimeout()
void addScriptSessionListener(ScriptSessionListener li)
ScriptSessionListeners
li - the ScriptSessionListener to addvoid removeScriptSessionListener(ScriptSessionListener li)
ScriptSessionListeners
li - the ScriptSessionListener to remove
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||