public interface GrailsApplicationAttributes
extends org.codehaus.groovy.grails.commons.ApplicationAttributes
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_NAME_ATTRIBUTE |
static java.lang.String |
APP_URI_ATTRIBUTE |
static java.lang.String |
ASYNC_STARTED |
static java.lang.String |
CONTENT_FORMAT |
static java.lang.String |
CONTROLLER |
static java.lang.String |
CONTROLLER_NAME_ATTRIBUTE |
static java.lang.String |
CONTROLLER_NAMESPACE_ATTRIBUTE |
static java.lang.String |
ERRORS |
static java.lang.String |
FLASH_SCOPE |
static java.lang.String |
GRAILS_CONTROLLER_CLASS |
static java.lang.String |
GRAILS_CONTROLLER_CLASS_AVAILABLE |
static java.lang.String |
GSP_CODEC |
static java.lang.String |
GSP_TEMPLATE_ENGINE |
static java.lang.String |
GSP_TMP_WRITER |
static java.lang.String |
GSP_TO_RENDER |
static java.lang.String |
ID_PARAM |
static java.lang.String |
MODEL_AND_VIEW |
static java.lang.String |
OUT |
static java.lang.String |
PAGE_SCOPE |
static java.lang.String |
PARAMS_OBJECT |
static java.lang.String |
PATH_TO_VIEWS |
static java.lang.String |
PROPERTY_REGISTRY |
static java.lang.String |
REDIRECT_ISSUED |
static java.lang.String |
RENDERING_ERROR_ATTRIBUTE |
static java.lang.String |
REQUEST_FORMATS |
static java.lang.String |
REQUEST_REDIRECTED_ATTRIBUTE |
static java.lang.String |
RESPONSE_FORMAT |
static java.lang.String |
RESPONSE_FORMATS |
static java.lang.String |
RESPONSE_MIME_TYPE |
static java.lang.String |
RESPONSE_MIME_TYPES |
static java.lang.String |
TAG_CACHE |
static java.lang.String |
TEMPLATE_MODEL |
static java.lang.String |
WEB_REQUEST |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getApplicationUri(javax.servlet.ServletRequest request) |
groovy.lang.GroovyObject |
getController(javax.servlet.ServletRequest request) |
java.lang.String |
getControllerActionUri(javax.servlet.ServletRequest request) |
java.lang.String |
getControllerUri(javax.servlet.ServletRequest request) |
org.springframework.validation.Errors |
getErrors(javax.servlet.ServletRequest request) |
FlashScope |
getFlashScope(javax.servlet.ServletRequest request)
Retrieves the flash scope instance for the given requeste
|
GroovyPagesUriService |
getGroovyPagesUriService() |
org.springframework.context.MessageSource |
getMessageSource() |
java.lang.String |
getNoSuffixViewURI(groovy.lang.GroovyObject controller,
java.lang.String viewName) |
java.io.Writer |
getOut(javax.servlet.http.HttpServletRequest request)
Holds the current response write for the request
|
ResourceAwareTemplateEngine |
getPagesTemplateEngine() |
java.lang.String |
getPluginContextPath(javax.servlet.http.HttpServletRequest request)
Retrieves the plugin context path for the current request.
|
javax.servlet.ServletContext |
getServletContext()
Retrieves the servlet context instance
|
groovy.lang.GroovyObject |
getTagLibraryForTag(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String tagName)
Retrieves a Grails tag library from the request for the named tag in
the default namespace GroovyPage.DEFAULT_NAMESPACE
|
groovy.lang.GroovyObject |
getTagLibraryForTag(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String tagName,
java.lang.String namespace)
Retrieves a Grails tag library from the request for the named tag in a
given namespace.
|
java.lang.String |
getTemplateUri(java.lang.CharSequence templateName,
javax.servlet.ServletRequest request) |
java.lang.String |
getTemplateURI(groovy.lang.GroovyObject controller,
java.lang.String templateName) |
java.lang.String |
getViewUri(java.lang.String viewName,
javax.servlet.http.HttpServletRequest request)
Retrieves the uri of a named view
|
void |
setOut(javax.servlet.http.HttpServletRequest currentRequest,
java.io.Writer out2)
Sets the current write for the request
|
static final java.lang.String PATH_TO_VIEWS
static final java.lang.String GSP_TEMPLATE_ENGINE
static final java.lang.String ASYNC_STARTED
static final java.lang.String CONTENT_FORMAT
static final java.lang.String RESPONSE_FORMAT
static final java.lang.String RESPONSE_MIME_TYPE
static final java.lang.String RESPONSE_MIME_TYPES
static final java.lang.String REQUEST_FORMATS
static final java.lang.String RESPONSE_FORMATS
static final java.lang.String FLASH_SCOPE
static final java.lang.String PARAMS_OBJECT
static final java.lang.String CONTROLLER
static final java.lang.String PROPERTY_REGISTRY
static final java.lang.String ERRORS
static final java.lang.String MODEL_AND_VIEW
static final java.lang.String TEMPLATE_MODEL
static final java.lang.String OUT
static final java.lang.String TAG_CACHE
static final java.lang.String ID_PARAM
static final java.lang.String GSP_TO_RENDER
static final java.lang.String GSP_CODEC
static final java.lang.String WEB_REQUEST
static final java.lang.String PAGE_SCOPE
static final java.lang.String GSP_TMP_WRITER
static final java.lang.String REQUEST_REDIRECTED_ATTRIBUTE
static final java.lang.String ACTION_NAME_ATTRIBUTE
static final java.lang.String CONTROLLER_NAME_ATTRIBUTE
static final java.lang.String CONTROLLER_NAMESPACE_ATTRIBUTE
static final java.lang.String GRAILS_CONTROLLER_CLASS
static final java.lang.String APP_URI_ATTRIBUTE
static final java.lang.String RENDERING_ERROR_ATTRIBUTE
static final java.lang.String REDIRECT_ISSUED
static final java.lang.String GRAILS_CONTROLLER_CLASS_AVAILABLE
java.lang.String getPluginContextPath(javax.servlet.http.HttpServletRequest request)
groovy.lang.GroovyObject getController(javax.servlet.ServletRequest request)
java.lang.String getControllerUri(javax.servlet.ServletRequest request)
request - java.lang.String getApplicationUri(javax.servlet.ServletRequest request)
request - java.lang.String getTemplateURI(groovy.lang.GroovyObject controller,
java.lang.String templateName)
java.lang.String getNoSuffixViewURI(groovy.lang.GroovyObject controller,
java.lang.String viewName)
javax.servlet.ServletContext getServletContext()
FlashScope getFlashScope(javax.servlet.ServletRequest request)
request - java.lang.String getTemplateUri(java.lang.CharSequence templateName,
javax.servlet.ServletRequest request)
templateName - request - java.lang.String getViewUri(java.lang.String viewName,
javax.servlet.http.HttpServletRequest request)
viewName - The name of the viewrequest - The request instancejava.lang.String getControllerActionUri(javax.servlet.ServletRequest request)
request - org.springframework.validation.Errors getErrors(javax.servlet.ServletRequest request)
request - ResourceAwareTemplateEngine getPagesTemplateEngine()
groovy.lang.GroovyObject getTagLibraryForTag(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String tagName)
request - the request instanceresponse - the response instanctetagName - The name of the tag that contains the tag librarygroovy.lang.GroovyObject getTagLibraryForTag(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String tagName,
java.lang.String namespace)
request - the request instanceresponse - the response instanctetagName - The name of the tag that contains the tag librarynamespace - The namespace of the tagjava.io.Writer getOut(javax.servlet.http.HttpServletRequest request)
void setOut(javax.servlet.http.HttpServletRequest currentRequest,
java.io.Writer out2)
currentRequest - The requestout2 - The writerGroovyPagesUriService getGroovyPagesUriService()
org.springframework.context.MessageSource getMessageSource()