|
||||||||||
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" |
java.lang.Object |
getScriptLock()
Deprecated. |
boolean |
hasWaitingScripts()
Allows for checking to see if there is data waiting to be returned |
void |
removeScriptConduit(ScriptConduit conduit)
Remove a ScriptConduit. |
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, invalidate, isInvalidated, removeAttribute, setAttribute |
Method Detail |
---|
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()
java.lang.Object getScriptLock()
|
Copyright ? 2005 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |