|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.DefaultRemoter
public class DefaultRemoter
An implementation of Remoter that delegates requests to a set of Modules
| Constructor Summary | |
|---|---|
DefaultRemoter()
|
|
| Method Summary | |
|---|---|
Reply |
execute(Call call)
Execute a single call object |
Replies |
execute(Calls calls)
Execute a set of remote calls and generate set of reply data for later conversion to whatever wire protocol we are using today. |
java.lang.String |
generateDtoInheritanceJavaScript(java.lang.String indent,
java.lang.String classExpression,
java.lang.String superClassExpression,
java.lang.String delegateFunction)
Generate JavaScript that sets up a DTO class's inheritance from its superclass |
java.lang.String |
generateDtoJavaScript(java.lang.String jsClassName,
java.lang.String indent,
java.lang.String assignVariable)
Generate JavaScript that forms a mapped DTO class |
java.lang.String |
generateInterfaceJavaScript(java.lang.String scriptName,
java.lang.String indent,
java.lang.String assignVariable,
java.lang.String contextServletPath)
Generate some Javascript that forms an interface definition |
java.lang.String |
getPathToDwrServlet(java.lang.String contextServletPath)
The path to the DWR servlet is probably just equal to request.contextPath plus request.servletPath. |
void |
setAccessControl(AccessControl accessControl)
Accessor for the security manager |
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 |
setAllowImpossibleTests(boolean allowImpossibleTests)
Do we allow impossible tests for debug purposes |
void |
setConverterManager(ConverterManager converterManager)
Accessor for the ConverterManager that we configure |
void |
setDebug(boolean debug)
Set the debug status |
void |
setMaxCallCount(int maxCallCount)
To prevent a DoS attack we limit the max number of calls that can be made in a batch |
void |
setModuleManager(ModuleManager moduleManager)
Accessor for the ModuleManager that we configure |
void |
setUseAbsolutePath(boolean useAbsolutePath)
By default we use a relative path to the DWR servlet which can help if there are several routes to the servlet. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRemoter()
| Method Detail |
|---|
public java.lang.String generateInterfaceJavaScript(java.lang.String scriptName,
java.lang.String indent,
java.lang.String assignVariable,
java.lang.String contextServletPath)
throws java.lang.SecurityException
Remoter
generateInterfaceJavaScript in interface RemoterscriptName - The script to generate forindent - Indent string prepended to all generated text linesassignVariable - JavaScript identifier to generate an assignment of the interface tocontextServletPath - request.contextPath + request.servletPath.
java.lang.SecurityException
public java.lang.String generateDtoJavaScript(java.lang.String jsClassName,
java.lang.String indent,
java.lang.String assignVariable)
throws java.lang.SecurityException
Remoter
generateDtoJavaScript in interface RemoterjsClassName - The mapped JavaScript class nameindent - Indent string prepended to all generated text linesassignVariable - JavaScript identifier to generate an assignment of the class to
java.lang.SecurityException
public java.lang.String generateDtoInheritanceJavaScript(java.lang.String indent,
java.lang.String classExpression,
java.lang.String superClassExpression,
java.lang.String delegateFunction)
Remoter
generateDtoInheritanceJavaScript in interface Remoterindent - Indent string prepended to all generated text linesclassExpression - The mapped JavaScript class namesuperClassExpression - The mapped JavaScript superclass namedelegateFunction - Name of a callable JavaScript function that will create a prototype delegate
(f ex dojo.delegate, in other frameworks sometimes called clone, beget, etc)
public java.lang.String getPathToDwrServlet(java.lang.String contextServletPath)
Remoter
getPathToDwrServlet in interface RemotercontextServletPath - request.contextPath + request.servletPath.
public Replies execute(Calls calls)
Remoter
execute in interface Remotercalls - The set of calls to execute
public Reply execute(Call call)
call - The call to execute
public void setUseAbsolutePath(boolean useAbsolutePath)
useAbsolutePath - Does DWR generate an absolute _path propertypublic void setModuleManager(ModuleManager moduleManager)
moduleManager - The new ModuleManagerpublic void setConverterManager(ConverterManager converterManager)
converterManager - The new ConverterManagerpublic void setAccessControl(AccessControl accessControl)
accessControl - The accessControl to set.public void setAccessLogLevel(java.lang.String accessLogLevel)
public void setAllowImpossibleTests(boolean allowImpossibleTests)
allowImpossibleTests - The allowImpossibleTests to set.public void setMaxCallCount(int maxCallCount)
maxCallCount - the maxCallCount to setpublic void setDebug(boolean debug)
debug - The new debug setting
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||