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:
- GrailsApplicationAware, ApplicationContextAware, Ordered, ServletContextAware, HandlerMapping
- Direct Known Subclasses:
- GrailsFlowHandlerMapping
public class GrailsControllerHandlerMapping
- extends AbstractHandlerMapping
- implements GrailsApplicationAware
A handler mapping that matches Grails' SimpleController class
- Since:
- 1.2
- Author:
- Graeme Rocher
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAIN_CONTROLLER_BEAN
public static final String MAIN_CONTROLLER_BEAN
- See Also:
- Constant Field Values
GrailsControllerHandlerMapping
public GrailsControllerHandlerMapping()
getHandlerInternal
protected Object getHandlerInternal(HttpServletRequest request)
throws Exception
- Specified by:
getHandlerInternal in class AbstractHandlerMapping
- Throws:
Exception
getHandlerForControllerClass
protected Object getHandlerForControllerClass(GrailsControllerClass controllerClass,
HttpServletRequest request)
- Obtains the handler for the given controller class
- Parameters:
controllerClass - The controller classrequest - The HttpServletRequest
- Returns:
- The handler
getHandlerExecutionChain
protected final HandlerExecutionChain getHandlerExecutionChain(Object handler,
HttpServletRequest request)
- Overrides:
getHandlerExecutionChain in class AbstractHandlerMapping
extendInterceptors
protected void extendInterceptors(List interceptors)
- Overrides:
extendInterceptors in class AbstractHandlerMapping
lookupInterceptors
protected HandlerInterceptor[] lookupInterceptors(WebApplicationContext applicationContext)
establishInterceptors
protected HandlerInterceptor[] establishInterceptors(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(GrailsApplication grailsApplication)
- Description copied from interface:
GrailsApplicationAware
This method is called by the ApplicationContext that
loads the Grails application. The GrailsApplication instance that represents
the loaded Grails application is injected.
- Specified by:
setGrailsApplication in interface GrailsApplicationAware
- Parameters:
grailsApplication - the GrailsApplication object that represents this Grails application
Copyright (c) 2005-2009 The Grails project