|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.directwebremoting.impl.DefaultScriptSessionManager
public class DefaultScriptSessionManager
A default implmentation of ScriptSessionManager.
There are synchronization constraints on this class that could be broken
by subclasses. Specifically anyone accessing either sessionMap
or pageSessionMap
must be holding the sessionLock
.
In addition you should note that DefaultScriptSession
and
DefaultScriptSessionManager
make calls to each other and you should
take care not to break any constraints in inheriting from these classes.
Field Summary |
---|
Fields inherited from interface org.directwebremoting.extend.ScriptSessionManager |
---|
DEFAULT_TIMEOUT_MILLIS |
Constructor Summary | |
---|---|
DefaultScriptSessionManager()
|
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 page)
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 page)
Locate the given script session on a page |
void |
setPageNormalizer(PageNormalizer pageNormalizer)
Accessfor for the PageNormalizer. |
void |
setScriptSessionCheckTime(long scriptSessionCheckTime)
|
void |
setScriptSessionTimeout(long timeout)
Accessor for the time (in milliseconds) when unused ScriptSessions will expire |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultScriptSessionManager()
Method Detail |
---|
public RealScriptSession getScriptSession(java.lang.String id)
ScriptSessionManager
getScriptSession
in interface ScriptSessionManager
id
- The id to get a ScriptSession object for
public void setPageForScriptSession(RealScriptSession scriptSession, java.lang.String page)
ScriptSessionManager
setPageForScriptSession
in interface ScriptSessionManager
scriptSession
- The session to locate on a pagepage
- The URL including 'http://', up to (but not including) '?' or '#'public java.util.Collection getScriptSessionsByPage(java.lang.String page)
ScriptSessionManager
getScriptSessionsByPage
in interface ScriptSessionManager
page
- The URL including 'http://', up to (but not including) '?' or '#'
public java.util.Collection getAllScriptSessions()
ScriptSessionManager
getAllScriptSessions
in interface ScriptSessionManager
public long getScriptSessionTimeout()
ScriptSessionManager
getScriptSessionTimeout
in interface ScriptSessionManager
public void setScriptSessionTimeout(long timeout)
ScriptSessionManager
setScriptSessionTimeout
in interface ScriptSessionManager
timeout
- the timeout to setpublic void setPageNormalizer(PageNormalizer pageNormalizer)
pageNormalizer
- The new PageNormalizerpublic void setScriptSessionCheckTime(long scriptSessionCheckTime)
scriptSessionCheckTime
- the scriptSessionCheckTime to set
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |