public abstract class AbstractGrailsControllerHelper
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.Class<?>,java.lang.Boolean> |
allowedMethodsSupport |
protected org.codehaus.groovy.grails.commons.GrailsApplication |
application |
protected org.springframework.context.ApplicationContext |
applicationContext |
protected boolean |
developerMode |
protected boolean |
developmentMode |
protected org.codehaus.groovy.grails.web.servlet.GrailsApplicationAttributes |
grailsAttributes |
protected javax.servlet.ServletContext |
servletContext |
| Constructor and Description |
|---|
AbstractGrailsControllerHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.servlet.ModelAndView |
executeAction(groovy.lang.GroovyObject controller,
java.lang.String actionName,
java.lang.String viewName,
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest webRequest,
java.util.Map params)
Invokes the action defined by the webRequest for the given arguments.
|
org.codehaus.groovy.grails.commons.GrailsControllerClass |
getControllerClassByName(java.lang.String name) |
org.codehaus.groovy.grails.commons.GrailsControllerClass |
getControllerClassByURI(java.lang.String uri) |
groovy.lang.GroovyObject |
getControllerInstance(org.codehaus.groovy.grails.commons.GrailsControllerClass controllerClass) |
org.codehaus.groovy.grails.web.servlet.GrailsApplicationAttributes |
getGrailsAttributes() |
javax.servlet.ServletContext |
getServletContext() |
java.lang.Object |
handleAction(groovy.lang.GroovyObject controller,
java.lang.Object action,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
java.lang.Object |
handleAction(groovy.lang.GroovyObject controller,
java.lang.Object action,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.Map params) |
org.springframework.web.servlet.ModelAndView |
handleActionResponse(groovy.lang.GroovyObject controller,
java.lang.Object returnValue,
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest webRequest,
java.util.Map chainModel,
java.lang.String closurePropertyName,
java.lang.String viewName) |
org.springframework.web.servlet.ModelAndView |
handleURI(java.lang.String uri,
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest request) |
org.springframework.web.servlet.ModelAndView |
handleURI(java.lang.String originalUri,
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest grailsWebRequest,
java.util.Map params) |
protected boolean |
hasCompileTimeSupportForAllowedMethods(groovy.lang.GroovyObject controller) |
protected abstract java.lang.Object |
invoke(groovy.lang.GroovyObject controller,
java.lang.Object action) |
protected abstract java.lang.Object |
retrieveAction(groovy.lang.GroovyObject controller,
java.lang.String actionName,
javax.servlet.http.HttpServletResponse response) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication application) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
protected org.codehaus.groovy.grails.commons.GrailsApplication application
protected org.springframework.context.ApplicationContext applicationContext
protected javax.servlet.ServletContext servletContext
protected org.codehaus.groovy.grails.web.servlet.GrailsApplicationAttributes grailsAttributes
protected boolean developmentMode
protected java.util.Map<java.lang.Class<?>,java.lang.Boolean> allowedMethodsSupport
protected final boolean developerMode
public javax.servlet.ServletContext getServletContext()
public org.codehaus.groovy.grails.commons.GrailsControllerClass getControllerClassByName(java.lang.String name)
public org.codehaus.groovy.grails.commons.GrailsControllerClass getControllerClassByURI(java.lang.String uri)
public groovy.lang.GroovyObject getControllerInstance(org.codehaus.groovy.grails.commons.GrailsControllerClass controllerClass)
public org.springframework.web.servlet.ModelAndView handleURI(java.lang.String uri,
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest request)
public org.springframework.web.servlet.ModelAndView handleURI(java.lang.String originalUri,
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest grailsWebRequest,
java.util.Map params)
protected boolean hasCompileTimeSupportForAllowedMethods(groovy.lang.GroovyObject controller)
protected abstract java.lang.Object retrieveAction(groovy.lang.GroovyObject controller,
java.lang.String actionName,
javax.servlet.http.HttpServletResponse response)
protected org.springframework.web.servlet.ModelAndView executeAction(groovy.lang.GroovyObject controller,
java.lang.String actionName,
java.lang.String viewName,
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest webRequest,
java.util.Map params)
controller - The controller instanceactionName - The current actionviewName - The name of the view to delegate to if necessarywebRequest - the current web Requestparams - A map of parameterspublic org.codehaus.groovy.grails.web.servlet.GrailsApplicationAttributes getGrailsAttributes()
public java.lang.Object handleAction(groovy.lang.GroovyObject controller,
java.lang.Object action,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
protected abstract java.lang.Object invoke(groovy.lang.GroovyObject controller,
java.lang.Object action)
public java.lang.Object handleAction(groovy.lang.GroovyObject controller,
java.lang.Object action,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.Map params)
public org.springframework.web.servlet.ModelAndView handleActionResponse(groovy.lang.GroovyObject controller,
java.lang.Object returnValue,
org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequest webRequest,
java.util.Map chainModel,
java.lang.String closurePropertyName,
java.lang.String viewName)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic void setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication application)
setGrailsApplication in interface org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware