uk.ltd.getahead.dwr
Class AbstractDWRServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
uk.ltd.getahead.dwr.AbstractDWRServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- Direct Known Subclasses:
- DWRServlet
- public abstract class AbstractDWRServlet
- extends javax.servlet.http.HttpServlet
This is abstract servlet that all DWR servlets should extend.
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
Each subclass should override the two abstract methods:
- getContainer(ServletConfig) - the implementation should provide a specific
implementation of the
Container
interface
- configure(ServletConfig, Configuration) - the subclass can perform additional
configuration at this point.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk], Bram Smeets
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
PACKAGE
The package name because people need to load resources in this package. |
Method Summary |
void |
init(javax.servlet.ServletConfig config)
|
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 |
PACKAGE
public static final java.lang.String PACKAGE
- The package name because people need to load resources in this package.
- See Also:
- Constant Field Values
AbstractDWRServlet
public AbstractDWRServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException