| javax.servlet.http.HttpServlet org.directwebremoting.servlet.DwrServlet
All known Subclasses: org.directwebremoting.guice.DwrGuiceServlet,
DwrServlet | public class DwrServlet extends HttpServlet (Code) | | 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] |
destroy | public void destroy()(Code) | | |
getContainer | public Container getContainer()(Code) | | Accessor for the DWR IoC container.
DWR's IoC container |
shutdown | public void shutdown()(Code) | | Kill all comet polls.
Technically a servlet engine ought to call this only when all the
threads are already removed, however at least Tomcat doesn't do this
properly (it waits for a while and then calls destroy anyway).
It would be good if we could get
DwrServlet.destroy() to call this
method however destroy() is only called once all threads are done so it's
too late.
|
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|