|
||||||||||
| 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.
| Method Summary | |
|---|---|
void |
addScriptConduit(ScriptConduit conduit)
While a Marshaller is processing a request it can register a ScriptConduit with the ScriptSession to say - "pass scripts to me" |
boolean |
addScriptImmediately(ScriptBuffer script)
If this ScriptSession currently has a connected ScriptConduit
and this conduit accepts and claims to be able to publish the script
then publish and return true, otherwise return false. |
java.lang.String |
getWindowName()
Accessor for the name attached to this window |
boolean |
hasWaitingScripts()
Allows for checking to see if there is data waiting to be returned |
void |
removeScriptConduit(ScriptConduit conduit)
Remove a ScriptConduit. |
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. |
void |
writeScripts(ScriptConduit conduit)
We might need to send a script directly to a conduit without adding the conduit to the "open" list and then removing it directly. |
| Methods inherited from interface org.directwebremoting.ScriptSession |
|---|
addScript, getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getPage, invalidate, isInvalidated, removeAttribute, setAttribute |
| Method Detail |
|---|
boolean addScriptImmediately(ScriptBuffer script)
ScriptConduit
and this conduit accepts and claims to be able to publish the script
then publish and return true, otherwise return false.
Add a script to the list waiting for remote execution.
The version automatically wraps the string in a ClientScript object.
script - The script to execute
void addScriptConduit(ScriptConduit conduit)
throws java.io.IOException
Several Marshallers may be active on the same page as a time and it doesn't really matter which gets the script. So ScriptSession should record all of the active ScriptConduits, but just pick one
conduit - The new ScriptConduit
java.io.IOException - If the write to the output failsremoveScriptConduit(ScriptConduit)void removeScriptConduit(ScriptConduit conduit)
conduit - The ScriptConduit to removeaddScriptConduit(ScriptConduit)
void writeScripts(ScriptConduit conduit)
throws java.io.IOException
conduit - The conduit to write to
java.io.IOException - If writing failsboolean hasWaitingScripts()
void updateLastAccessedTime()
void setWindowName(java.lang.String windowName)
windowName - The new name for the window that spawned this Sessionjava.lang.String getWindowName()
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||