org.directwebremoting.spring
Class DwrSpringServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.directwebremoting.servlet.DwrServlet
              extended by org.directwebremoting.spring.DwrSpringServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DwrSpringServlet
extends DwrServlet

The servlet that handles all calls to DWR.
It retrieves its configuration from the Spring IoC container. This is done in two ways:

  1. Use the Spring namespace. When using the Spring namespace for DWR, the configuration for DWR is automatically picked up by this servlet.
  2. Explicitly specify which configurations to pick up. When explicitly defining the DWR configuration in Spring yourself, you can explicitly 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, Serialized Form

Constructor Summary
DwrSpringServlet()
           
 
Method Summary
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
          Use provided application context rather than the default.
 void setConfigurators(java.util.List<Configurator> 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 org.directwebremoting.servlet.DwrServlet
destroy, doGet, doPost, getContainer, init
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
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
 

Constructor Detail

DwrSpringServlet

public DwrSpringServlet()
Method Detail

setConfigurators

public void setConfigurators(java.util.List<Configurator> 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

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Use provided application context rather than the default.

Parameters:
applicationContext -

Copyright 2008