|
||||||||||
| 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.Scripts
Data class combining script list with offset. |
| 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.Scripts |
getScripts(long fromScriptIndex)
Get queued scripts starting from the supplied index. |
java.lang.String |
getWindowName()
Accessor for the name attached to this window |
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 |
setWindowName(java.lang.String windowName)
If the global parameter avoid2ConnectionLimitWithWindowName == true then we need to keep a track of the names of the windows that connect to us |
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 |
|---|
addScript, getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getPage, invalidate, isInvalidated, removeAttribute, setAttribute |
| Method Detail |
|---|
void setSleeper(Sleeper sleeper)
void clearSleeper(Sleeper sleeper)
RealScriptSession.Scripts getScripts(long fromScriptIndex)
fromScriptIndex - start index
void confirmScripts(long scriptIndex)
scriptIndex - last index that can be purgedvoid updateLastAccessedTime()
void setWindowName(java.lang.String windowName)
windowName - The new name for the window that spawned this Sessionjava.lang.String getWindowName()
void setPage(java.lang.String page)
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||