| org.directwebremoting.extend.Remoter
All known Subclasses: org.directwebremoting.impl.DefaultRemoter,
Remoter | public interface Remoter (Code) | | The heart of DWR is a system to generate content from some requests.
This interface generates scripts and executes remote calls.
author: Joe Walker [joe at getahead dot ltd dot uk] |
Method Summary | |
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. | String | generateInterfaceScript(String scriptName, String contextServletPath) Generate some Javascript that forms an interface definition
Parameters: scriptName - The script to generate for Parameters: contextServletPath - request.contextPath + request.servletPath. | String | getPathToDwrServlet(String contextServletPath) The path to the DWR servlet is probably just equal to request.contextPath
plus request.servletPath. |
execute | Replies execute(Calls calls)(Code) | | Execute a set of remote calls and generate set of reply data for later
conversion to whatever wire protocol we are using today.
Parameters: calls - The set of calls to execute A set of reply data objects |
generateInterfaceScript | String generateInterfaceScript(String scriptName, String contextServletPath) throws SecurityException(Code) | | Generate some Javascript that forms an interface definition
Parameters: scriptName - The script to generate for Parameters: contextServletPath - request.contextPath + request.servletPath. An interface javascript throws: SecurityException - |
getPathToDwrServlet | String getPathToDwrServlet(String contextServletPath)(Code) | | The path to the DWR servlet is probably just equal to request.contextPath
plus request.servletPath. However there are 2 ways to override this.
One is to provide an overridePath setting, and the other is to specify
useAbsolutePath=true, when the full URL up to the DWR servlet is used.
This method simply echos back the contextServletPath unless one of those
2 settings are used in which case the modified value is returned.
Parameters: contextServletPath - request.contextPath + request.servletPath. The path to the DWR servlet |
|
|