@groovy.transform.Trait @groovy.transform.CompileStatic trait WebAttributes extends java.lang.Object
Common web attributes inherited by all controllers and tag libraries
Modifiers | Name | Description |
---|---|---|
private GrailsApplication |
grailsApplication |
Type Params | Return Type | Name and description |
---|---|---|
|
GrailsWebRequest |
currentRequestAttributes() |
|
java.lang.String |
getActionName() Obtains the currently executing action name |
|
GrailsControllerClass |
getControllerClass() Obtains the currently executing controller class |
|
java.lang.String |
getControllerName() Obtains the currently executing controller name |
|
java.lang.String |
getControllerNamespace() Obtains the currently executing controller namespace |
|
FlashScope |
getFlash() Obtains the Grails FlashScope instance |
|
GrailsApplication |
getGrailsApplication() Obtains the GrailsApplication instance |
|
GrailsApplicationAttributes |
getGrailsAttributes() Obtains the GrailsApplicationAttributes instance |
|
GrailsParameterMap |
getParams() Obtains the Grails parameter map |
|
java.lang.String |
getPluginContextPath() Obtains the pluginContextPath |
|
GrailsWebRequest |
getWebRequest() Obtains the currently executing web request |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), 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() |
Obtains the currently executing action name
Obtains the currently executing controller class
Obtains the currently executing controller name
Obtains the currently executing controller namespace
Obtains the Grails FlashScope instance
Obtains the GrailsApplication instance
Obtains the GrailsApplicationAttributes instance
Obtains the Grails parameter map
Obtains the pluginContextPath
delegate
- The object the method is being invoked onObtains the currently executing web request