| |
|
| java.lang.Object org.directwebremoting.extend.ScriptConduit
All known Subclasses: org.directwebremoting.dwrp.BaseScriptConduit, org.directwebremoting.bayeux.BayeuxScriptConduit,
ScriptConduit | abstract public class ScriptConduit implements Comparable<ScriptConduit>(Code) | | While a Marshaller is processing a request it can register a ScriptConduit
with the ScriptSession to say - pass scripts straight to me and bypass the
temporary storage area.
This interface allows this to happen.
author: Joe Walker [joe at getahead dot ltd dot uk] |
Field Summary | |
final public static int | RANK_FAST | final public static int | RANK_PROCEDURAL | final public static int | RANK_SLOW Indicates that this ScriptConduit is a poor way of getting scripts to the
client and should only be used as a last resort. |
RANK_FAST | final public static int RANK_FAST(Code) | | Indicates that this ScriptConduit is a very good way of getting scripts
to the client and should be used as a preferred method
|
RANK_PROCEDURAL | final public static int RANK_PROCEDURAL(Code) | | Indicates that this ScriptConduit is used for control-flow and will
probably not actually convey the script, but does need to tell someone
else about it
|
RANK_SLOW | final public static int RANK_SLOW(Code) | | Indicates that this ScriptConduit is a poor way of getting scripts to the
client and should only be used as a last resort.
|
ScriptConduit | public ScriptConduit(int rank)(Code) | | All ScriptConduit need a rank
Parameters: rank - How does this ScriptConduit sort |
addScript | abstract public boolean addScript(ScriptBuffer script) throws IOException, MarshallException(Code) | | Add a script to the list bound for remote execution.
It is not an error to refuse to handle the script and return false, it
just indicates that this ScriptConduit did not accept the script.
If the ScriptConduit can no longer function then it should throw an
exception and it will be assumed to be no longer useful.
If you want to implement this method then you will probably be doing
something like calling
ServletOutputStream.print(String) and
passing in the results of calling ScriptBufferUtil.createOutput().
Parameters: script - The script to execute true if this ScriptConduit handled the script. throws: IOException - If this conduit is broken and should not be used throws: MarshallException - If objects in the script can not be marshalled |
hashCode | public int hashCode()(Code) | | |
|
|
|