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