|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RealScriptSession
RealScriptSession is the real interface that should be implemented in place of ScriptSession. It includes methods required by the guts of DWR, that are not needed by normal users.
| Nested Class Summary | |
|---|---|
static interface |
RealScriptSession.Script
Interface for queued script info class. |
| Method Summary | |
|---|---|
void |
clearSleeper(Sleeper sleeper)
Remove Sleeper. |
void |
confirmScripts(long scriptIndex)
Confirms that the client has received all scripts up to and including the supplied index so that script data may be purged. |
RealScriptSession.Script |
getScript(long scriptIndex)
Get queued script from the supplied index. |
void |
setHttpSessionId(java.lang.String httpSessionId)
Set a new HttpSession id for the ScriptSession |
void |
setPage(java.lang.String page)
Set a new page for the ScriptSession (in case of HTML pushState) |
void |
setSleeper(Sleeper sleeper)
While a Marshaller is processing a request it can register a Sleeper with the ScriptSession to say - "tell me when there is new data" |
void |
updateLastAccessedTime()
Called whenever a browser accesses this ScriptSession to ensure that the session does not timeout before it should. |
| Methods inherited from interface org.directwebremoting.ScriptSession |
|---|
addRunnable, addScript, getAttribute, getAttributeNames, getCreationTime, getHttpSessionId, getId, getLastAccessedTime, getPage, invalidate, isInvalidated, removeAttribute, setAttribute |
| Method Detail |
|---|
void setSleeper(Sleeper sleeper)
void clearSleeper(Sleeper sleeper)
RealScriptSession.Script getScript(long scriptIndex)
scriptIndex - index
void confirmScripts(long scriptIndex)
scriptIndex - last index that can be purgedvoid updateLastAccessedTime()
void setPage(java.lang.String page)
void setHttpSessionId(java.lang.String httpSessionId)
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||