|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.dwrp.BaseDwrpHandler
org.directwebremoting.dwrp.BaseCallHandler
public abstract class BaseCallHandler
A Marshaller that output plain Javascript. This marshaller can be tweaked to output Javascript in an HTML context. This class works in concert with CallScriptConduit, they should be considered closely related and it is important to understand what one does while editing the other.
| Constructor Summary | |
|---|---|
BaseCallHandler()
|
|
| Method Summary | |
|---|---|
void |
addScriptHandleExceptions(ScriptConduit conduit,
ScriptBuffer script)
Marshall a Script without worrying about MarshallExceptions |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle a URL request that has been mapped to this Handler |
boolean |
isConvertable(java.lang.Class<?> paramType)
|
boolean |
isJsonOutput()
|
void |
marshallException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ScriptConduit conduit,
java.lang.Exception ex,
boolean sendPrefix)
|
Calls |
marshallInbound(CallBatch batch)
Convert batch into calls. |
void |
marshallOutbound(Batch batch,
Replies replies,
javax.servlet.http.HttpServletResponse response,
ScriptConduit conduit,
java.io.PrintWriter out)
|
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 |
setConverterManager(ConverterManager converterManager)
Accessor for the ConverterManager that we configure |
void |
setDebug(boolean debug)
Set the debug status |
void |
setDebugScriptOutput(boolean debugScriptOutput)
Do we debug all the scripts that we output? |
void |
setJsonOutput(boolean jsonOutput)
|
void |
setModuleManager(ModuleManager moduleManager)
Accessor for the ModuleManager that we configure |
void |
setPageNormalizer(PageNormalizer pageNormalizer)
Accessor for the PageNormalizer. |
void |
setRemoter(Remoter remoter)
Setter for the remoter |
void |
setScriptSessionManager(ScriptSessionManager scriptSessionManager)
Accessor for the ScriptSessionManager that we configure |
| Methods inherited from class org.directwebremoting.dwrp.BaseDwrpHandler |
|---|
setAllowGetButMakeForgeryEasier, setCrossDomainSessionSecurity, setExtendedCrossDomainSessionSecurity |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseCallHandler()
| Method Detail |
|---|
public void handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException
Handler
request - The HTTP request dataresponse - Where we write the HTTP response data
java.io.IOException - If the write process failspublic Calls marshallInbound(CallBatch batch)
batch - The data we've parsed from the request
public void marshallOutbound(Batch batch,
Replies replies,
javax.servlet.http.HttpServletResponse response,
ScriptConduit conduit,
java.io.PrintWriter out)
throws java.lang.Exception
java.lang.Exception
public void marshallException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ScriptConduit conduit,
java.lang.Exception ex,
boolean sendPrefix)
throws java.io.IOException
java.io.IOException
public void addScriptHandleExceptions(ScriptConduit conduit,
ScriptBuffer script)
throws java.io.IOException
java.io.IOExceptionpublic boolean isConvertable(java.lang.Class<?> paramType)
public void setDebug(boolean debug)
debug - The new debug settingpublic void setRemoter(Remoter remoter)
remoter - The new remoterpublic void setDebugScriptOutput(boolean debugScriptOutput)
debugScriptOutput - true to debug all of the output scripts (verbose)public boolean isJsonOutput()
public void setJsonOutput(boolean jsonOutput)
jsonOutput - Are we outputting in JSON mode?public void setAccessLogLevel(java.lang.String accessLogLevel)
public void setPageNormalizer(PageNormalizer pageNormalizer)
pageNormalizer - The new PageNormalizerpublic void setScriptSessionManager(ScriptSessionManager scriptSessionManager)
scriptSessionManager - public void setConverterManager(ConverterManager converterManager)
converterManager - public void setModuleManager(ModuleManager moduleManager)
moduleManager -
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||