|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.TransientScriptSessionManager
public class TransientScriptSessionManager
A default implementation 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
TransientScriptSessionManager make calls to each other and you should
take care not to break any constraints in inheriting from these classes.
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_HTTPSESSIONID
Use of this attribute is currently discouraged, we may make this public in a later release. |
static java.lang.String |
ATTRIBUTE_PAGE
Use of this attribute is currently discouraged, we may make this public in a later release. |
| Fields inherited from interface org.directwebremoting.extend.ScriptSessionManager |
|---|
DEFAULT_TIMEOUT_MILLIS |
| Constructor Summary | |
|---|---|
TransientScriptSessionManager()
|
|
| 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 page,
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 |
void |
setConverterManager(ConverterManager converterManager)
|
void |
setJsonOutput(boolean jsonOutput)
|
void |
setPageNormalizer(PageNormalizer pageNormalizer)
How we turn pages into the canonical form. |
void |
setScriptSessionTimeout(long scriptSessionTimeout)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ATTRIBUTE_HTTPSESSIONID
public static final java.lang.String ATTRIBUTE_PAGE
| Constructor Detail |
|---|
public TransientScriptSessionManager()
| Method Detail |
|---|
public RealScriptSession getOrCreateScriptSession(java.lang.String id,
java.lang.String page,
javax.servlet.http.HttpSession httpSession)
ScriptSessionManager
getOrCreateScriptSession in interface ScriptSessionManagerid - The id to get a ScriptSession object forpage - 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)
public ScriptSession getScriptSessionById(java.lang.String scriptSessionId)
ScriptSessionManager
getScriptSessionById in interface ScriptSessionManagerscriptSessionId - The id to lookup
public java.util.Collection<ScriptSession> getScriptSessionsByHttpSessionId(java.lang.String httpSessionId)
ScriptSessionManager
getScriptSessionsByHttpSessionId in interface ScriptSessionManagerhttpSessionId - The browser id to lookup
public java.util.Collection<ScriptSession> getAllScriptSessions()
ScriptSessionManager
getAllScriptSessions in interface ScriptSessionManagerpublic void addScriptSessionListener(ScriptSessionListener li)
ScriptSessionManagerScriptSessionListeners
addScriptSessionListener in interface ScriptSessionManagerli - the ScriptSessionListener to addpublic void removeScriptSessionListener(ScriptSessionListener li)
ScriptSessionManagerScriptSessionListeners
removeScriptSessionListener in interface ScriptSessionManagerli - the ScriptSessionListener to removepublic java.lang.String getInitCode()
ScriptSessionManager
getInitCode in interface ScriptSessionManagerpublic long getScriptSessionTimeout()
ScriptSessionManager
getScriptSessionTimeout in interface ScriptSessionManagerpublic void setScriptSessionTimeout(long scriptSessionTimeout)
public void setPageNormalizer(PageNormalizer pageNormalizer)
pageNormalizer - The new PageNormalizerpublic void setConverterManager(ConverterManager converterManager)
public void setJsonOutput(boolean jsonOutput)
jsonOutput - Are we outputting in JSON mode?
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||