org.directwebremoting.spring
Class DwrSpringServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.directwebremoting.servlet.DwrServlet
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:
- Use the Spring namespace. When using the Spring namespace for DWR, the configuration 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 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
|
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 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 |
DwrSpringServlet
public DwrSpringServlet()
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 -