org.directwebremoting.dwrp
Class BaseScriptConduit

java.lang.Object
  extended by org.directwebremoting.dwrp.BaseScriptConduit
All Implemented Interfaces:
ScriptConduit
Direct Known Subclasses:
HtmlScriptConduit, PlainScriptConduit

public abstract class BaseScriptConduit
extends java.lang.Object
implements ScriptConduit

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.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
BaseScriptConduit(java.io.PrintWriter out, java.lang.String instanceId)
          Simple ctor
 
Method Summary
 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 setDebugScriptOutput(boolean debugScriptOutput)
          Do we debug all the scripts that we output?
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.directwebremoting.extend.ScriptConduit
beginChunk, beginStreamAndChunk, endChunk, endStreamAndChunk, getOutboundMimeType, sendScript
 

Constructor Detail

BaseScriptConduit

public BaseScriptConduit(java.io.PrintWriter out,
                         java.lang.String instanceId)
Simple ctor

Method Detail

setAccessLogLevel

public 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). 2) exception (checked) - default for debug. 3) runtimeexception (unchecked). 4) error - default for production. 5) off.


setDebugScriptOutput

public void setDebugScriptOutput(boolean debugScriptOutput)
Do we debug all the scripts that we output?

Parameters:
debugScriptOutput - true to debug all of the output scripts (verbose)

Copyright ยจ 2008