org.directwebremoting.spring
Class DwrSpringServlet
java.lang.Object
HttpServlet
org.directwebremoting.spring.DwrSpringServlet
public class DwrSpringServlet
- extends HttpServlet
The servlet that handles all calls to DWR.
It retrieves its configuration from the Spring IoC container. This is done in two ways:
- Use the Spring namespace. When using the Spring namespace for DWR, the confgiuration for DWR is
automatically picked up by this servlet.
- Explicitly specify which configurations to pick up. When explicitly defining the DWR configuration in
Spring yourself, you can explicitely specify them in the init parameters.
Same as with the DwrServlet
, you can specify a debug
init parameter on this servlet
to put DWR in debug mode (allowing access to the very handy debug pages).
- Author:
- Bram Smeets, Joe Walker [joe at getahead dot ltd dot uk]
- See Also:
DwrServlet
Method Summary |
protected void |
doGet(HttpServletRequest req,
HttpServletResponse resp)
|
protected void |
doPost(HttpServletRequest request,
HttpServletResponse response)
|
void |
init(ServletConfig servletConfig)
|
void |
setConfigurators(java.util.List configurators)
Setter for use by the Spring IoC container to tell us what Configurators
exist for us to configure ourselves. |
void |
setIncludeDefaultConfig(boolean includeDefaultConfig)
Do we prefix the list of Configurators with a default to read the system
dwr.xml file? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
webContextBuilder
protected WebContextFactory.WebContextBuilder webContextBuilder
- The WebContext that keeps http objects local to a thread
DwrSpringServlet
public DwrSpringServlet()
setConfigurators
public void setConfigurators(java.util.List configurators)
- Setter for use by the Spring IoC container to tell us what Configurators
exist for us to configure ourselves.
- Parameters:
configurators
-
setIncludeDefaultConfig
public void setIncludeDefaultConfig(boolean includeDefaultConfig)
- Do we prefix the list of Configurators with a default to read the system
dwr.xml file?
- Parameters:
includeDefaultConfig
- the includeDefaultConfig to set
init
public void init(ServletConfig servletConfig)
throws ServletException
- Throws:
ServletException
doGet
protected void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws java.io.IOException,
ServletException
- Throws:
java.io.IOException
ServletException
doPost
protected void doPost(HttpServletRequest request,
HttpServletResponse response)
throws java.io.IOException,
ServletException
- Throws:
java.io.IOException
ServletException