|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.extend.ScriptConduit
org.directwebremoting.dwrp.BaseScriptConduit
public abstract class BaseScriptConduit
A ScriptConduit that works with the parent Marshaller. In some ways this is nasty because it has access to essentially private parts of BasePollHandler, however there is nowhere sensible to store them within that class, so this is a hacky simplification.
| Field Summary |
|---|
| Fields inherited from class org.directwebremoting.extend.ScriptConduit |
|---|
RANK_FAST, RANK_PROCEDURAL, RANK_SLOW |
| Constructor Summary | |
|---|---|
BaseScriptConduit(Sleeper sleeper,
javax.servlet.http.HttpServletResponse response,
java.lang.String batchId,
ConverterManager converterManager,
boolean jsonOutput)
Simple ctor |
|
| Method Summary | |
|---|---|
void |
cancel()
Prevent further calls to Sleeper.wakeUp(). |
void |
close(int timetoNextPoll)
A poll has finished, get the client to call us back |
void |
setAccessLogLevel(java.lang.String accessLogLevel)
When and what should we log? Options are (specified in the DWR servlet's init-params): 1) call (start of call + successful return values). |
void |
setDebug(boolean debug)
Set the debug status |
void |
setDebugScriptOutput(boolean debugScriptOutput)
Do we debug all the scripts that we output? |
| Methods inherited from class org.directwebremoting.extend.ScriptConduit |
|---|
addScript, compareTo, equals, getRank, hashCode, isHoldingConnectionToBrowser, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseScriptConduit(Sleeper sleeper,
javax.servlet.http.HttpServletResponse response,
java.lang.String batchId,
ConverterManager converterManager,
boolean jsonOutput)
throws java.io.IOException
response - Used to flush outputbatchId - The id of the batch that we are responding toconverterManager - How we convert objects to script
java.io.IOException - If stream actions fail| Method Detail |
|---|
public void close(int timetoNextPoll)
throws java.io.IOException
timetoNextPoll - How long before we tell the browser to come back?
java.io.IOException - When we fail to call endStream()public void cancel()
AlarmSleeper.wakeUp().
See the note about late calls above.
cancel in interface Alarmpublic void setDebug(boolean debug)
debug - The new debug settingpublic void setAccessLogLevel(java.lang.String accessLogLevel)
public void setDebugScriptOutput(boolean debugScriptOutput)
debugScriptOutput - true to debug all of the output scripts (verbose)
|
Copyright ¨ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||