public interface GrailsApplicationAttributes extends ApplicationAttributes
Defines the names of and methods to retrieve Grails specific request and servlet attributes.
Type Params | Return Type | Name and description |
---|---|---|
|
public java.lang.String |
getApplicationUri(javax.servlet.ServletRequest request)
|
|
public groovy.lang.GroovyObject |
getController(javax.servlet.ServletRequest request)
|
|
public java.lang.String |
getControllerActionUri(javax.servlet.ServletRequest request)
|
|
public java.lang.String |
getControllerUri(javax.servlet.ServletRequest request)
|
|
public org.springframework.validation.Errors |
getErrors(javax.servlet.ServletRequest request)
|
|
public FlashScope |
getFlashScope(javax.servlet.ServletRequest request) Retrieves the flash scope instance for the given requeste |
|
public GroovyPagesUriService |
getGroovyPagesUriService()
|
|
public org.springframework.context.MessageSource |
getMessageSource()
|
|
public java.lang.String |
getNoSuffixViewURI(groovy.lang.GroovyObject controller, java.lang.String viewName) |
|
public java.io.Writer |
getOut(javax.servlet.http.HttpServletRequest request) Holds the current response write for the request |
|
public org.grails.gsp.ResourceAwareTemplateEngine |
getPagesTemplateEngine()
|
|
public java.lang.String |
getPluginContextPath(javax.servlet.http.HttpServletRequest request) Retrieves the plugin context path for the current request. |
|
public javax.servlet.ServletContext |
getServletContext() Retrieves the servlet context instance |
|
public java.lang.String |
getTemplateURI(groovy.lang.GroovyObject controller, java.lang.String templateName) Resolve the URI for a template |
|
public java.lang.String |
getTemplateURI(groovy.lang.GroovyObject controller, java.lang.String templateName, boolean includeExtension) Resolve the URI for a template |
|
public java.lang.String |
getTemplateUri(java.lang.CharSequence templateName, javax.servlet.ServletRequest request)
|
|
public java.lang.String |
getViewUri(java.lang.String viewName, javax.servlet.http.HttpServletRequest request) Retrieves the uri of a named view |
|
public void |
setOut(javax.servlet.http.HttpServletRequest currentRequest, java.io.Writer out2) Sets the current write for the request |
Methods inherited from class | Name |
---|---|
interface ApplicationAttributes |
getApplicationContext, getGrailsApplication |
Retrieves the flash scope instance for the given requeste
Holds the current response write for the request
Retrieves the plugin context path for the current request. The plugin context path is the path used by plugins to reference resources such as javascript, CSS and so forth It is established by evaluating the current controller, if the current controller is plugin provided then it will attempt to evaluate the path based on the plugin the controller came from
Retrieves the servlet context instance
Resolve the URI for a template
controller
- The controllertemplateName
- The name of the templateResolve the URI for a template
controller
- The controllertemplateName
- The name of the templateincludeExtension
- Whether to include the GSP etension
Retrieves the uri of a named view
viewName
- The name of the viewrequest
- The request instanceSets the current write for the request
currentRequest
- The requestout2
- The writer