|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GrailsApplicationAttributes
An interface defining the names of and methods to retrieve Grails specific request and servlet attributes
Field Summary | |
---|---|
static java.lang.String |
ACTION_NAME_ATTRIBUTE
|
static java.lang.String |
CONTENT_FORMAT
|
static java.lang.String |
CONTROLLER
|
static java.lang.String |
CONTROLLER_NAME_ATTRIBUTE
|
static java.lang.String |
ERRORS
|
static java.lang.String |
FLASH_SCOPE
|
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 |
REQUEST_FORMATS
|
static java.lang.String |
REQUEST_REDIRECTED_ATTRIBUTE
|
static java.lang.String |
TAG_CACHE
|
static java.lang.String |
WEB_REQUEST
|
Fields inherited from interface org.codehaus.groovy.grails.commons.ApplicationAttributes |
---|
APPLICATION_CONTEXT, PARENT_APPLICATION_CONTEXT, PLUGIN_MANAGER, REQUEST_SCOPE_ID |
Method Summary | |
---|---|
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 |
java.io.Writer |
getOut(javax.servlet.http.HttpServletRequest request)
Holds the current response write for the request |
GroovyPagesTemplateEngine |
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.String templateName,
javax.servlet.ServletRequest request)
|
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 org.codehaus.groovy.grails.commons.ApplicationAttributes |
---|
getApplicationContext, getGrailsApplication |
Field Detail |
---|
static final java.lang.String PATH_TO_VIEWS
static final java.lang.String GSP_TEMPLATE_ENGINE
static final java.lang.String CONTENT_FORMAT
static final java.lang.String REQUEST_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 ERRORS
static final java.lang.String MODEL_AND_VIEW
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 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
Method Detail |
---|
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
-
javax.servlet.ServletContext getServletContext()
FlashScope getFlashScope(javax.servlet.ServletRequest request)
request
-
java.lang.String getTemplateUri(java.lang.String 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 instance
java.lang.String getControllerActionUri(javax.servlet.ServletRequest request)
request
-
org.springframework.validation.Errors getErrors(javax.servlet.ServletRequest request)
request
-
GroovyPagesTemplateEngine 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 library
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
java.io.Writer getOut(javax.servlet.http.HttpServletRequest request)
void setOut(javax.servlet.http.HttpServletRequest currentRequest, java.io.Writer out2)
currentRequest
- The requestout2
- The writer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |