A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

A

ACTION_ANNOTATION_NODE - Field in ControllerActionTransformer
addMethodToInvokeClosure(ClassNode, PropertyNode, SourceUnit, GeneratorContext) - Method in ControllerActionTransformer
addResourceHandlers(ResourceHandlerRegistry) - Method in ControllersGrailsPlugin.GrailsWebMvcConfigurer
AllowedMethodsHelper - Class in grails.artefact.controller.support
A helper class for interrogating the allowedMethods property.
annotateActionMethod(ClassNode, Parameter, MethodNode) - Method in ControllerActionTransformer
APPLICATION_XML - Field in RenderDynamicMethod
ARGUMENT_BEAN - Field in RenderDynamicMethod
ARGUMENT_BUILDER - Field in RenderDynamicMethod
ARGUMENT_COLLECTION - Field in RenderDynamicMethod
ARGUMENT_CONTENT_TYPE - Field in RenderDynamicMethod
ARGUMENT_CONTEXTPATH - Field in RenderDynamicMethod
ARGUMENT_ENCODING - Field in RenderDynamicMethod
ARGUMENT_FILE_NAME - Field in RenderDynamicMethod
ARGUMENT_FILE - Field in RenderDynamicMethod
ARGUMENT_LAYOUT - Field in RenderDynamicMethod
ARGUMENT_MODEL - Field in RenderDynamicMethod
ARGUMENT_PLUGIN - Field in RenderDynamicMethod
ARGUMENT_STATUS - Field in RenderDynamicMethod
ARGUMENT_TEMPLATE - Field in RenderDynamicMethod
ARGUMENT_TEXT - Field in RenderDynamicMethod
ARGUMENT_VAR - Field in RenderDynamicMethod
ARGUMENT_VIEW - Field in RenderDynamicMethod
AUTOWIRE_DOMAIN_METHOD - Field in ControllersDomainBindingApi

B

bindData(Class, Collection, ServletRequest) - Method in Controller
Binds data for the given type to the given collection from the request
BootStrapClassRunner - Class in org.grails.plugins.web.servlet.context
Runs the BootStrap classes on startup
BUILDER_TYPE_JSON - Field in RenderDynamicMethod

C

chain(Map) - Method in ResponseRedirector
Chains from one action to another via an HTTP redirect.
Controller - Trait in grails.artefact
Classes that implement the Controller trait are automatically treated as web controllers in a Grails application
CONTROLLER_PATTERN - Field in ControllerActionTransformer
ControllerActionTransformer - Class in org.grails.compiler.web
Enhances controller classes by converting closures actions to method actions and binding request parameters to action arguments.
ControllerActionTransformer() - Constructor in ControllerActionTransformer
ControllerArtefactTypeTransformation - Class in org.grails.compiler.web
A transformation that makes an Artefact a controller
ControllerDomainTransformer - Class in org.grails.compiler.web
Adds binding methods to domain classes.
ControllerExceptionHandlerMetaData - Interface in org.grails.plugins.web.controllers
Represents meta data which describes an exception handling method in a controller
ControllersDomainBindingApi - Class in org.grails.plugins.web.controllers.api
Enhancements made to domain classes for data binding.
ControllersGrailsPlugin - Class in org.grails.plugins.web.controllers
Handles the configuration of controllers for Grails.
ControllersGrailsPlugin.GrailsWebMvcConfigurer - Class in org.grails.plugins.web.controllers
ControllersGrailsPlugin.GrailsWebMvcConfigurer(Integer, boolean, String) - Constructor in ControllersGrailsPlugin.GrailsWebMvcConfigurer
ControllerTraitInjector - Class in grails.compiler.traits
A grails.compiler.traits.TraitInjector that injects controllers with the Controller trait
CONVERT_CLOSURES_KEY - Field in ControllerActionTransformer

D

DEFAULT_ARGUMENT - Field in RenderDynamicMethod
DEFAULT_ENCODING - Field in RenderDynamicMethod
DefaultControllerExceptionHandlerMetaData - Class in org.grails.plugins.web.controllers
Represents meta data which describes an exception handling method in a controller
DELEGATING_METHOD_ANNOATION - Field in ControllerActionTransformer
DISPOSITION_HEADER_PREFIX - Field in RenderDynamicMethod
doWithSpring() - Method in ControllersGrailsPlugin

E

EXCEPTION_HANDLER_META_DATA_FIELD_NAME - Field in ControllerActionTransformer

F

forward(Map) - Method in RequestForwarder
Forwards a request for the given parameters using the RequestDispatchers forward method

G

getActionUri() - Method in Controller
Returns the URI of the currently executing action
getAnnotationTypeClass() - Method in ControllerArtefactTypeTransformation
getArtefactType() - Method in ControllerDomainTransformer
getArtefactTypes() - Method in ControllerActionTransformer
getArtefactTypes() - Method in ControllerTraitInjector
getChainModel() - Method in ResponseRedirector
Obtains the chain model which is used to chain request attributes from one request to the next via flash scope
getCodeToHandleAllowedMethods(ClassNode, String) - Method in ControllerActionTransformer
getControllerUri() - Method in Controller
Returns the URI of the currently executing controller
getErrors() - Method in Controller
Obtains the errors instance for the current controller
getExceptionHandlerMethodFor(Class<? extends Exception>) - Method in Controller
getExceptionHandlerMethods(ClassNode, SourceUnit) - Method in ControllerActionTransformer
getExceptionType() - Method in ControllerExceptionHandlerMetaData
getGrailsLinkGenerator() - Method in ResponseRedirector
getInstanceImplementation() - Method in ControllerDomainTransformer
getMethodName() - Method in ControllerExceptionHandlerMetaData
getModelAndView() - Method in Controller
Obtains the ModelAndView for the currently executing controller
getRejectValueExpression(ClassNode, String) - Method in ControllerActionTransformer
getStaticApplicationContext() - Method in Controller
getStaticImplementation() - Method in ControllerDomainTransformer
getTemplateUri(String) - Method in Controller
Obtains a URI of a template by name
getTrait() - Method in ControllerTraitInjector
getViewUri(String) - Method in Controller
Obtains a URI of a view by name

H

hasErrors() - Method in Controller
Return true if there are an errors
header(String, def) - Method in Controller
Sets a response header for the given name and value

I

initialize(Object, Map) - Method in ControllersDomainBindingApi
A map based constructor that binds the named arguments to the target instance
initializeActionParameters(ClassNode, ASTNode, String, Parameter, SourceUnit, GeneratorContext) - Method in ControllerActionTransformer
initializeAndValidateCommandObjectParameter(BlockStatement, ClassNode, ClassNode, ASTNode, String, String, SourceUnit, GeneratorContext) - Method in ControllerActionTransformer
initializeCommandObject(Class, String) - Method in Controller
Initializes a command object.
initializeCommandObjectParameter(BlockStatement, ClassNode, String, SourceUnit) - Method in ControllerActionTransformer
initializeMethodParameter(ClassNode, BlockStatement, ASTNode, String, Parameter, SourceUnit, GeneratorContext) - Method in ControllerActionTransformer
initializePrimitiveOrTypeWrapperParameter(ClassNode, BlockStatement, Parameter, String) - Method in ControllerActionTransformer
initializeStringParameter(ClassNode, BlockStatement, Parameter, String) - Method in ControllerActionTransformer
InvalidResponseHandler - Class in org.grails.plugins.web.servlet.mvc
Handles an invalid token response.
InvalidResponseHandler() - Constructor in InvalidResponseHandler
invalidTokenInternal(Closure) - Method in InvalidResponseHandler
invalidTokenInternal(Closure) - Method in ValidResponseHandler
isAllowed(String, HttpServletRequest, Map) - Method in AllowedMethodsHelper
isCandidateInstanceMethod(ClassNode, MethodNode) - Method in ControllerDomainTransformer

J

K

L

M

METHOD_SIGNATURE - Field in RenderDynamicMethod
methodShouldBeConfiguredAsControllerAction(MethodNode) - Method in ControllerActionTransformer
@param method a potential controller action method

N

O

onChange(Map<String, Object>) - Method in ControllersGrailsPlugin
onShutdown(Map<String, Object>) - Method in BootStrapClassRunner
onStartup(Map<String, Object>) - Method in BootStrapClassRunner

P

performInjection(SourceUnit, ClassNode) - Method in ControllerActionTransformer
performInjection(SourceUnit, GeneratorContext, ClassNode) - Method in ControllerDomainTransformer
performInjectionOnAnnotatedClass(SourceUnit, ClassNode) - Method in ControllerActionTransformer

Q

R

redirect(Map) - Method in Controller
Redirects for the given arguments.
redirect(Map) - Method in ResponseRedirector
Redirects for the given arguments.
render(Map) - Method in ResponseRenderer
Render a response for the given named arguments
RenderDynamicMethod - Class in org.grails.plugins.web.controllers.metaclass
Allows rendering of text, views, and templates to the response
RequestForwarder - Trait in grails.artefact.controller.support
A Trait for classes that forward the request
requiresAutowiring() - Method in ControllerDomainTransformer
resolveArtefactType(SourceUnit, AnnotationNode, ClassNode) - Method in ControllerArtefactTypeTransformation
ResponseRedirector - Trait in grails.artefact.controller.support
A trait for objects that redirect the response
ResponseRenderer - Trait in grails.artefact.controller.support
A trait that adds behavior to allow rendering of objects to the response

S

setActionResultTransformers(ActionResultTransformer) - Method in ResponseRenderer
setCompilationUnit(CompilationUnit) - Method in ControllerActionTransformer
setErrors(Errors) - Method in Controller
Sets the errors instance of the current controller
setGrailsLinkGenerator(LinkGenerator) - Method in ResponseRedirector
setGroovyPageLayoutFinder(GroovyPageLayoutFinder) - Method in ResponseRenderer
setMimeUtility(MimeUtility) - Method in ResponseRenderer
setModelAndView(ModelAndView) - Method in Controller
Sets the ModelAndView of the current controller
setRedirectListeners(Collection<RedirectEventListener>) - Method in ResponseRedirector
setRequestDataValueProcessor(RequestDataValueProcessor) - Method in ResponseRedirector
setUrlConverter(UrlConverter) - Method in RequestForwarder
shouldInject(URL) - Method in ControllerActionTransformer
shouldInject(URL) - Method in ControllerDomainTransformer

T

TEXT_HTML - Field in RenderDynamicMethod
transformClosureToMethod(ClassNode, ClosureExpression, PropertyNode, SourceUnit, GeneratorContext) - Method in ControllerActionTransformer

U

V

ValidResponseHandler - Class in org.grails.plugins.web.servlet.mvc
Handles a valid token response.
ValidResponseHandler(def) - Constructor in ValidResponseHandler
VOID_TYPE - Field in ControllerActionTransformer

W

withForm(GrailsWebRequest, Closure) - Method in Controller
withFormat(Closure) - Method in Controller
wrapMethodBodyWithExceptionHandling(ClassNode, MethodNode) - Method in ControllerActionTransformer
This will wrap the method body in a try catch block which does something like this:
 try {
     // original method body here
 } catch (Exception $caughtException) {
     Method $method = getExceptionHandlerMethod($caughtException.getClass())
     if($method) {
         return $method.invoke(this, $caughtException)
     } else {
         throw $caughtException
     }
 }
 

X

Y

Z

_

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _