|
||||||||||
| 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 implementation of ScriptSessionManager.
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 | |
|---|---|
void |
addScriptSessionListener(ScriptSessionListener li)
Maintain the list of ScriptSessionListeners |
void |
afterContainerSetup(Container container)
This method allows the bean instance to perform initialization only possible when all bean properties have been set |
void |
destroy()
Called when Container.destroy() is called
which usually happens when the DWR servlet is destroyed. |
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 sentScriptId,
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 |
setScheduledThreadPoolExecutor(java.util.concurrent.ScheduledThreadPoolExecutor executor)
How often do we check for script sessions that need timing out |
void |
setScriptSessionCheckTime(long scriptSessionCheckTime)
How often do we check for script sessions that need timing out |
void |
setScriptSessionTimeout(long scriptSessionTimeout)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultScriptSessionManager()
| Method Detail |
|---|
public void afterContainerSetup(Container container)
InitializingBeanThis method allows the bean instance to perform initialization only possible when all bean properties have been set
afterContainerSetup in interface InitializingBeancontainer - The container that is doing the initializationpublic void destroy()
UninitializingBeanContainer.destroy() is called
which usually happens when the DWR servlet is destroyed.
destroy in interface UninitializingBean
public RealScriptSession getOrCreateScriptSession(java.lang.String sentScriptId,
java.lang.String page,
javax.servlet.http.HttpSession httpSession)
ScriptSessionManager
getOrCreateScriptSession in interface ScriptSessionManagersentScriptId - 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 setScriptSessionCheckTime(long scriptSessionCheckTime)
public void setScheduledThreadPoolExecutor(java.util.concurrent.ScheduledThreadPoolExecutor executor)
public 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 | |||||||||