org.directwebremoting.spring
Class DwrHandlerMapping
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.handler.AbstractHandlerMapping
org.springframework.web.servlet.handler.AbstractUrlHandlerMapping
org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
org.directwebremoting.spring.DwrHandlerMapping
- All Implemented Interfaces:
- org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.HandlerMapping
public class DwrHandlerMapping
- extends org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
Automatically maps (at context startup) the URLs needed by DWR to a DWRController.
- Author:
- Jose Noheda [jose.noheda@gmail.com]
| Fields inherited from interface org.springframework.web.servlet.HandlerMapping |
PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE |
| Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
|
Method Summary |
void |
initApplicationContext()
Maps the following URLs to dwr controller
/engine.js
/util.js
/interface/**
/call/**
/test/**
/download/** |
| Methods inherited from class org.springframework.web.servlet.handler.SimpleUrlHandlerMapping |
getUrlMap, setMappings, setUrlMap |
| Methods inherited from class org.springframework.web.servlet.handler.AbstractUrlHandlerMapping |
getHandlerMap, getPathMatcher, getRootHandler, setAlwaysUseFullPath, setLazyInitHandlers, setPathMatcher, setRootHandler, setUrlDecode, setUrlPathHelper |
| Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping |
getDefaultHandler, getHandler, getOrder, setDefaultHandler, setInterceptors, setOrder |
| Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
setServletContext |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, setApplicationContext |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DwrHandlerMapping
public DwrHandlerMapping()
initApplicationContext
public void initApplicationContext()
throws org.springframework.beans.BeansException
- Maps the following URLs to dwr controller
/engine.js
/util.js
/interface/**
/call/**
/test/**
/download/**
- Overrides:
initApplicationContext in class org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
- Throws:
org.springframework.beans.BeansException