|
||||||||||
| 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 |
java.util.Collection<ScriptSession> |
getAllScriptSessions()
Get a list of all the currently known ScriptSessions by id. |
java.lang.String |
getInitCode()
Some implementations of ScriptSessionManager need to add custom code into engine.js to register ScriptSessions with the server. |
RealScriptSession |
getOrCreateScriptSession(java.lang.String id,
java.lang.String url,
javax.servlet.http.HttpSession httpSession)
For a given script session id, return the existing ScriptSession object or create a new if needed. |
ScriptSession |
getScriptSessionById(java.lang.String scriptSessionId)
Lookup the ScriptSession corresponding to a ScriptSession id. |
java.util.Collection<ScriptSession> |
getScriptSessionsByHttpSessionId(java.lang.String httpSessionId)
Lookup all the windows associated with a given browser |
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> getScriptSessionsByHttpSessionId(java.lang.String httpSessionId)
httpSessionId - The browser id to lookup
ScriptSession getScriptSessionById(java.lang.String scriptSessionId)
scriptSessionId - The id to lookup
RealScriptSession getOrCreateScriptSession(java.lang.String id,
java.lang.String url,
javax.servlet.http.HttpSession httpSession)
id - The id to get a ScriptSession object forurl - The URL including 'http://', up to (but not including) '?' or '#' (or null if not known)httpSession - The session to associate the ScriptSession with (if any)
long getScriptSessionTimeout()
void addScriptSessionListener(ScriptSessionListener li)
ScriptSessionListeners
li - the ScriptSessionListener to addvoid removeScriptSessionListener(ScriptSessionListener li)
ScriptSessionListeners
li - the ScriptSessionListener to removejava.lang.String getInitCode()
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||