|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface GrailsControllerHelper
Processes Grails controller requests and responses.
Method Summary | |
---|---|
GrailsControllerClass
|
getControllerClassByName(java.lang.String className)
Retrieves a controller class for the specified class name |
GrailsControllerClass
|
getControllerClassByURI(java.lang.String uri)
Retrieves a GrailsControllerClass by URI. |
groovy.lang.GroovyObject
|
getControllerInstance(GrailsControllerClass controllerClass)
Creates a new controller instance for the specified GrailsControllerClass. |
GrailsApplicationAttributes
|
getGrailsAttributes()
@return Returns the grails request attributes instance |
ServletContext
|
getServletContext()
@return The servlet context instance |
java.lang.Object
|
handleAction(groovy.lang.GroovyObject controller, groovy.lang.Closure action, HttpServletRequest request, HttpServletResponse response)
Handles a Controller action. |
java.lang.Object
|
handleAction(groovy.lang.GroovyObject controller, groovy.lang.Closure action, HttpServletRequest request, HttpServletResponse response, java.util.Map params)
Handles a Controller action. |
ModelAndView
|
handleActionResponse(groovy.lang.GroovyObject controller, java.lang.Object returnValue, java.lang.String closurePropertyName, java.lang.String viewName)
Processes an action response for the specified arguments. |
ModelAndView
|
handleURI(java.lang.String uri, GrailsWebRequest webRequest)
Handles a Grails URI. |
ModelAndView
|
handleURI(java.lang.String uri, GrailsWebRequest webRequest, java.util.Map params)
Handles a Grails URI |
Method Detail |
---|
public GrailsControllerClass getControllerClassByName(java.lang.String className)
public GrailsControllerClass getControllerClassByURI(java.lang.String uri)
uri
- The URI to lookup
public groovy.lang.GroovyObject getControllerInstance(GrailsControllerClass controllerClass)
controllerClass
- The GrailsControllerClass
public GrailsApplicationAttributes getGrailsAttributes()
public ServletContext getServletContext()
public java.lang.Object handleAction(groovy.lang.GroovyObject controller, groovy.lang.Closure action, HttpServletRequest request, HttpServletResponse response)
action
- An action Closure instancerequest
- The request objectresponse
- The response
@SuppressWarnings("rawtypes") public java.lang.Object handleAction(groovy.lang.GroovyObject controller, groovy.lang.Closure action, HttpServletRequest request, HttpServletResponse response, java.util.Map params)
action
- An action Closure instancerequest
- The request objectresponse
- The responseparams
- A Map of controller parameters
public ModelAndView handleActionResponse(groovy.lang.GroovyObject controller, java.lang.Object returnValue, java.lang.String closurePropertyName, java.lang.String viewName)
controller
- The controller instancereturnValue
- The response from the closureclosurePropertyName
- The property name of the closureviewName
- The name of the view
public ModelAndView handleURI(java.lang.String uri, GrailsWebRequest webRequest)
uri
- The URI to processwebRequest
- The GrailsWebRequest
@SuppressWarnings("rawtypes") public ModelAndView handleURI(java.lang.String uri, GrailsWebRequest webRequest, java.util.Map params)
uri
- The URI to processswebRequest
- the GrailsWebRequest instanceparams
- A map of controller parameters
Groovy Documentation