|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.codehaus.groovy.grails.commons.ApplicationAttributes org.codehaus.groovy.grails.web.servlet.GrailsApplicationAttributes
public interface GrailsApplicationAttributes extends ApplicationAttributes
Defines the names of and methods to retrieve Grails specific request and servlet attributes.
Field Summary | |
---|---|
java.lang.String |
ACTION_NAME_ATTRIBUTE
|
java.lang.String |
APP_URI_ATTRIBUTE
|
java.lang.String |
ASYNC_STARTED
|
java.lang.String |
CONTENT_FORMAT
|
java.lang.String |
CONTROLLER
|
java.lang.String |
CONTROLLER_NAME_ATTRIBUTE
|
java.lang.String |
ERRORS
|
java.lang.String |
FLASH_SCOPE
|
java.lang.String |
GRAILS_CONTROLLER_CLASS
|
java.lang.String |
GRAILS_CONTROLLER_CLASS_AVAILABLE
|
java.lang.String |
GSP_CODEC
|
java.lang.String |
GSP_TEMPLATE_ENGINE
|
java.lang.String |
GSP_TMP_WRITER
|
java.lang.String |
GSP_TO_RENDER
|
java.lang.String |
ID_PARAM
|
java.lang.String |
MODEL_AND_VIEW
|
java.lang.String |
OUT
|
java.lang.String |
PAGE_SCOPE
|
java.lang.String |
PARAMS_OBJECT
|
java.lang.String |
PATH_TO_VIEWS
|
java.lang.String |
PROPERTY_REGISTRY
|
java.lang.String |
REDIRECT_ISSUED
|
java.lang.String |
RENDERING_ERROR_ATTRIBUTE
|
java.lang.String |
REQUEST_FORMATS
|
java.lang.String |
REQUEST_REDIRECTED_ATTRIBUTE
|
java.lang.String |
RESPONSE_FORMAT
|
java.lang.String |
RESPONSE_FORMATS
|
java.lang.String |
TAG_CACHE
|
java.lang.String |
TEMPLATE_MODEL
|
java.lang.String |
WEB_REQUEST
|
Fields inherited from interface ApplicationAttributes | |
---|---|
APPLICATION_CONTEXT, PARENT_APPLICATION_CONTEXT, PLUGIN_MANAGER, REQUEST_SCOPE_ID |
Method Summary | |
---|---|
java.lang.String
|
getApplicationUri(javax.servlet.ServletRequest request)
@param request |
groovy.lang.GroovyObject
|
getController(javax.servlet.ServletRequest request)
@return The controller for the request |
java.lang.String
|
getControllerActionUri(javax.servlet.ServletRequest request)
@param request |
java.lang.String
|
getControllerUri(javax.servlet.ServletRequest request)
@param request |
org.springframework.validation.Errors
|
getErrors(javax.servlet.ServletRequest request)
@param 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 |
GroovyPagesTemplateEngine
|
getPagesTemplateEngine()
@return Retrieves the shared GSP template engine |
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(groovy.lang.GroovyObject controller, java.lang.String templateName)
|
java.lang.String
|
getTemplateUri(java.lang.CharSequence templateName, javax.servlet.ServletRequest request)
@param 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 |
Methods inherited from interface ApplicationAttributes | |
---|---|
getApplicationContext, getGrailsApplication |
Field Detail |
---|
public java.lang.String ACTION_NAME_ATTRIBUTE
public java.lang.String APP_URI_ATTRIBUTE
public java.lang.String ASYNC_STARTED
public java.lang.String CONTENT_FORMAT
public java.lang.String CONTROLLER
public java.lang.String CONTROLLER_NAME_ATTRIBUTE
public java.lang.String ERRORS
public java.lang.String FLASH_SCOPE
public java.lang.String GRAILS_CONTROLLER_CLASS
public java.lang.String GRAILS_CONTROLLER_CLASS_AVAILABLE
public java.lang.String GSP_CODEC
public java.lang.String GSP_TEMPLATE_ENGINE
public java.lang.String GSP_TMP_WRITER
public java.lang.String GSP_TO_RENDER
public java.lang.String ID_PARAM
public java.lang.String MODEL_AND_VIEW
public java.lang.String OUT
public java.lang.String PAGE_SCOPE
public java.lang.String PARAMS_OBJECT
public java.lang.String PATH_TO_VIEWS
public java.lang.String PROPERTY_REGISTRY
public java.lang.String REDIRECT_ISSUED
public java.lang.String RENDERING_ERROR_ATTRIBUTE
public java.lang.String REQUEST_FORMATS
public java.lang.String REQUEST_REDIRECTED_ATTRIBUTE
public java.lang.String RESPONSE_FORMAT
public java.lang.String RESPONSE_FORMATS
public java.lang.String TAG_CACHE
public java.lang.String TEMPLATE_MODEL
public java.lang.String WEB_REQUEST
Method Detail |
---|
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)
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)
public GroovyPagesTemplateEngine getPagesTemplateEngine()
public java.lang.String getPluginContextPath(javax.servlet.http.HttpServletRequest request)
public javax.servlet.ServletContext getServletContext()
public 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 library
public groovy.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 tag
public java.lang.String getTemplateURI(groovy.lang.GroovyObject controller, java.lang.String templateName)
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)
viewName
- The name of the viewrequest
- The request instance
public void setOut(javax.servlet.http.HttpServletRequest currentRequest, java.io.Writer out2)
currentRequest
- The requestout2
- The writer
Groovy Documentation