org.codehaus.groovy.grails.web.servlet
Class GrailsControllerHandlerMapping
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.handler.AbstractHandlerMapping
org.codehaus.groovy.grails.web.servlet.GrailsControllerHandlerMapping
- All Implemented Interfaces:
- org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.HandlerMapping
public class GrailsControllerHandlerMapping
- extends org.springframework.web.servlet.handler.AbstractHandlerMapping
- implements org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware
Matches Grails' SimpleController class.
- Since:
- 1.2
| Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
| Fields inherited from interface org.springframework.web.servlet.HandlerMapping |
BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE |
| Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
|
Method Summary |
protected org.springframework.web.servlet.HandlerInterceptor[] |
establishInterceptors(org.springframework.web.context.WebApplicationContext webContext)
Evalutes the given WebApplicationContext for all HandlerInterceptor and WebRequestInterceptor instances |
protected void |
extendInterceptors(java.util.List interceptors)
|
protected org.springframework.web.servlet.HandlerExecutionChain |
getHandlerExecutionChain(java.lang.Object handler,
javax.servlet.http.HttpServletRequest request)
|
protected java.lang.Object |
getHandlerForControllerClass(org.codehaus.groovy.grails.commons.GrailsControllerClass controllerClass,
javax.servlet.http.HttpServletRequest request)
Obtains the handler for the given controller class. |
protected java.lang.Object |
getHandlerInternal(javax.servlet.http.HttpServletRequest request)
|
protected org.springframework.web.servlet.HandlerInterceptor[] |
lookupInterceptors(org.springframework.web.context.WebApplicationContext applicationContext)
|
void |
setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
|
| Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping |
adaptInterceptor, detectMappedInterceptors, getAdaptedInterceptors, getDefaultHandler, getHandler, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setUrlDecode, setUrlPathHelper |
| Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAIN_CONTROLLER_BEAN
public static final java.lang.String MAIN_CONTROLLER_BEAN
- See Also:
- Constant Field Values
GrailsControllerHandlerMapping
public GrailsControllerHandlerMapping()
getHandlerInternal
protected java.lang.Object getHandlerInternal(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
- Specified by:
getHandlerInternal in class org.springframework.web.servlet.handler.AbstractHandlerMapping
- Throws:
java.lang.Exception
getHandlerForControllerClass
protected java.lang.Object getHandlerForControllerClass(org.codehaus.groovy.grails.commons.GrailsControllerClass controllerClass,
javax.servlet.http.HttpServletRequest request)
- Obtains the handler for the given controller class.
- Parameters:
controllerClass - The controller classrequest - The HttpServletRequest
- Returns:
- The handler
getHandlerExecutionChain
protected final org.springframework.web.servlet.HandlerExecutionChain getHandlerExecutionChain(java.lang.Object handler,
javax.servlet.http.HttpServletRequest request)
- Overrides:
getHandlerExecutionChain in class org.springframework.web.servlet.handler.AbstractHandlerMapping
extendInterceptors
protected void extendInterceptors(java.util.List interceptors)
- Overrides:
extendInterceptors in class org.springframework.web.servlet.handler.AbstractHandlerMapping
lookupInterceptors
protected org.springframework.web.servlet.HandlerInterceptor[] lookupInterceptors(org.springframework.web.context.WebApplicationContext applicationContext)
establishInterceptors
protected org.springframework.web.servlet.HandlerInterceptor[] establishInterceptors(org.springframework.web.context.WebApplicationContext webContext)
- Evalutes the given WebApplicationContext for all HandlerInterceptor and WebRequestInterceptor instances
- Parameters:
webContext - The WebApplicationContext
- Returns:
- An array of HandlerInterceptor instances
setGrailsApplication
public void setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
- Specified by:
setGrailsApplication in interface org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware