org.directwebremoting.dwrp
Class BaseScriptConduit
java.lang.Object
org.directwebremoting.extend.ScriptConduit
org.directwebremoting.dwrp.BaseScriptConduit
- All Implemented Interfaces:
- java.lang.Comparable
- Direct Known Subclasses:
- Html4kScriptConduit, HtmlScriptConduit, PlainScriptConduit
public abstract class BaseScriptConduit
- extends ScriptConduit
A ScriptConduit that works with the parent Marshaller.
In some ways this is nasty because it has access to essentially private parts
of PollHandler, however there is nowhere sensible to store them
within that class, so this is a hacky simplification.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
Method Summary |
void |
close(int timetoNextPoll)
A poll has finished, get the client to call us back |
org.directwebremoting.dwrp.Alarm |
getErrorAlarm()
|
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
BaseScriptConduit
public BaseScriptConduit(javax.servlet.http.HttpServletResponse response,
java.lang.String batchId,
ConverterManager converterManager)
throws java.io.IOException
- Simple ctor
- Parameters:
response
- Used to flush outputbatchId
- The id of the batch that we are responding toconverterManager
- How we convert objects to script
- Throws:
java.io.IOException
- If stream ops fail
close
public void close(int timetoNextPoll)
throws java.io.IOException
- A poll has finished, get the client to call us back
- Parameters:
timetoNextPoll
- How long before we tell the browser to come back?
- Throws:
java.io.IOException
getErrorAlarm
public org.directwebremoting.dwrp.Alarm getErrorAlarm()
- Returns:
- The Alarm that goes off if something is badly broken