uk.ltd.getahead.dwr
Class DWRServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
uk.ltd.getahead.dwr.AbstractDWRServlet
uk.ltd.getahead.dwr.DWRServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class DWRServlet
- extends AbstractDWRServlet
This is the main servlet that handles all the requests to DWR.
It is on the large side because it can't use technologies like JSPs etc
since it all needs to be deployed in a single jar file, and while it might be
possible to integrate Velocity or similar I think simplicity is more
important, and there are only 2 real pages both script heavy in this servlet
anyway.
There are 5 things to do, in the order that you come across them:
- The index test page that points at the classes
- The class test page that lets you execute methods
- The interface javascript that uses the engine to send requests
- The engine javascript to form the iframe request and process replies
- The exec 'page' that executes the method and returns data to the iframe
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
- See Also:
- Serialized Form
|
Method Summary |
void |
configure(javax.servlet.ServletConfig config,
Configuration configuration)
Performs additional configuration based on the specified init parameters. |
Container |
getContainer(javax.servlet.ServletConfig config)
Concrete implementations of a DwrServlet will need to provide the system
with a pre configured Container from which we can get the components that
make up DWR. |
| Methods inherited from class javax.servlet.http.HttpServlet |
service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DWRServlet
public DWRServlet()
getContainer
public Container getContainer(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Description copied from class:
AbstractDWRServlet
- Concrete implementations of a DwrServlet will need to provide the system
with a pre configured Container from which we can get the components that
make up DWR.
- Parameters:
config - the servlet configuration to obtain the init parameters from
- Returns:
- the default container implementation
- Throws:
javax.servlet.ServletException - in case adding of a parameter fails
configure
public void configure(javax.servlet.ServletConfig config,
Configuration configuration)
throws javax.servlet.ServletException
- Description copied from class:
AbstractDWRServlet
- Performs additional configuration based on the specified init parameters.
It adds additional configuration based on the configuration files
specified by init parameters. In case no confuration file has been
specified, the default DWR configuration is loaded.
- Parameters:
config - the servlet configuration to obtain the init parameters fromconfiguration - the configuration to add configuration to
- Throws:
javax.servlet.ServletException - in case the additional configuration fails