|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper
public class SimpleGrailsControllerHelper
Does the main job of dealing with Grails web requests.
Constructor Summary | |
SimpleGrailsControllerHelper(GrailsApplication application, ApplicationContext context, ServletContext servletContext)
|
Method Summary | |
---|---|
protected ModelAndView
|
executeAction(groovy.lang.GroovyObject controller, GrailsControllerClass controllerClass, java.lang.String viewName, HttpServletRequest request, HttpServletResponse response, java.util.Map params)
Invokes the action defined by the webRequest for the given arguments. |
GrailsControllerClass
|
getControllerClassByName(java.lang.String name)
|
GrailsControllerClass
|
getControllerClassByURI(java.lang.String uri)
|
groovy.lang.GroovyObject
|
getControllerInstance(GrailsControllerClass controllerClass)
|
GrailsApplicationAttributes
|
getGrailsAttributes()
|
ServletContext
|
getServletContext()
|
java.lang.Object
|
handleAction(groovy.lang.GroovyObject controller, groovy.lang.Closure action, HttpServletRequest request, HttpServletResponse response)
|
java.lang.Object
|
handleAction(groovy.lang.GroovyObject controller, groovy.lang.Closure action, HttpServletRequest request, HttpServletResponse response, java.util.Map params)
|
ModelAndView
|
handleActionResponse(groovy.lang.GroovyObject controller, java.lang.Object returnValue, java.lang.String closurePropertyName, java.lang.String viewName)
|
ModelAndView
|
handleURI(java.lang.String uri, GrailsWebRequest request)
|
ModelAndView
|
handleURI(java.lang.String uri, GrailsWebRequest grailsWebRequest, java.util.Map params)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public SimpleGrailsControllerHelper(GrailsApplication application, ApplicationContext context, ServletContext servletContext)
Method Detail |
---|
@SuppressWarnings({ "unchecked", "rawtypes" }) protected ModelAndView executeAction(groovy.lang.GroovyObject controller, @SuppressWarnings("unused") GrailsControllerClass controllerClass, java.lang.String viewName, HttpServletRequest request, HttpServletResponse response, java.util.Map params)
controller
- The controller instancecontrollerClass
- The GrailsControllerClass that defines the conventions within the controllerviewName
- The name of the view to delegate to if necessaryrequest
- The HttpServletRequest objectresponse
- The HttpServletResponse objectparams
- A map of parameters
public GrailsControllerClass getControllerClassByName(java.lang.String name)
public GrailsControllerClass getControllerClassByURI(java.lang.String uri)
public groovy.lang.GroovyObject getControllerInstance(GrailsControllerClass controllerClass)
public GrailsApplicationAttributes getGrailsAttributes()
public ServletContext getServletContext()
public java.lang.Object handleAction(groovy.lang.GroovyObject controller, groovy.lang.Closure action, HttpServletRequest request, HttpServletResponse response)
@SuppressWarnings("rawtypes") public java.lang.Object handleAction(groovy.lang.GroovyObject controller, groovy.lang.Closure action, HttpServletRequest request, HttpServletResponse response, java.util.Map params)
@SuppressWarnings({ "unchecked", "rawtypes" }) public ModelAndView handleActionResponse(groovy.lang.GroovyObject controller, java.lang.Object returnValue, java.lang.String closurePropertyName, java.lang.String viewName)
public ModelAndView handleURI(java.lang.String uri, GrailsWebRequest request)
@SuppressWarnings("rawtypes") public ModelAndView handleURI(java.lang.String uri, GrailsWebRequest grailsWebRequest, java.util.Map params)
Groovy Documentation