org.directwebremoting.spring
Class DwrHandlerMapping

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.handler.AbstractHandlerMapping
              extended by org.springframework.web.servlet.handler.AbstractUrlHandlerMapping
                  extended by org.springframework.web.servlet.handler.SimpleUrlHandlerMapping
                      extended by 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]

Field Summary
 
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
 
Constructor Summary
DwrHandlerMapping()
           
 
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
 

Constructor Detail

DwrHandlerMapping

public DwrHandlerMapping()
Method Detail

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

Copyright 2008