| |
|
| org.directwebremoting.extend.RealScriptSession
All known Subclasses: org.directwebremoting.impl.DefaultScriptSession,
RealScriptSession | public interface RealScriptSession extends ScriptSession(Code) | | 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.
author: Joe Walker [joe at getahead dot ltd dot uk] |
addScriptConduit | void addScriptConduit(ScriptConduit conduit) throws IOException(Code) | | While a Marshaller is processing a request it can register a
ScriptConduit with the ScriptSession to say - "pass scripts to me"
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
Parameters: conduit - The new ScriptConduit throws: IOException - If the write to the output fails See Also: RealScriptSession.removeScriptConduit(ScriptConduit) |
addScriptImmediately | boolean addScriptImmediately(ScriptBuffer script)(Code) | | 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.
Add a script to the list waiting for remote execution.
The version automatically wraps the string in a ClientScript object.
Parameters: script - The script to execute |
getWindowName | String getWindowName()(Code) | | Accessor for the name attached to this window
|
hasWaitingScripts | boolean hasWaitingScripts()(Code) | | Allows for checking to see if there is data waiting to be returned
true if there are no waiting scripts |
setWindowName | void setWindowName(String windowName)(Code) | | If the global parameter avoid2ConnectionLimitWithWindowName == true then
we need to keep a track of the names of the windows that connect to us
Parameters: windowName - The new name for the window that spawned this Session |
updateLastAccessedTime | void updateLastAccessedTime()(Code) | | Called whenever a browser accesses this ScriptSession to ensure that the
session does not timeout before it should.
|
writeScripts | void writeScripts(ScriptConduit conduit) throws IOException(Code) | | We might need to send a script directly to a conduit without adding the
conduit to the "open" list and then removing it directly.
Parameters: conduit - The conduit to write to throws: IOException - If writing fails |
|
|
|