|
||||||||||
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 String |
ACTION_NAME_ATTRIBUTE
|
static String |
CONTENT_FORMAT
|
static String |
CONTROLLER
|
static String |
CONTROLLER_NAME_ATTRIBUTE
|
static String |
ERRORS
|
static String |
FLASH_SCOPE
|
static String |
GSP_TEMPLATE_ENGINE
|
static String |
GSP_TMP_WRITER
|
static String |
GSP_TO_RENDER
|
static String |
ID_PARAM
|
static String |
MODEL_AND_VIEW
|
static String |
OUT
|
static String |
PAGE_SCOPE
|
static String |
PARAMS_OBJECT
|
static String |
PATH_TO_VIEWS
|
static String |
REQUEST_FORMATS
|
static String |
REQUEST_REDIRECTED_ATTRIBUTE
|
static String |
TAG_CACHE
|
static 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 | |
---|---|
String |
getApplicationUri(ServletRequest request)
|
groovy.lang.GroovyObject |
getController(ServletRequest request)
|
String |
getControllerActionUri(ServletRequest request)
|
String |
getControllerUri(ServletRequest request)
|
Errors |
getErrors(ServletRequest request)
|
FlashScope |
getFlashScope(ServletRequest request)
Retrieves the flash scope instance for the given requeste |
Writer |
getOut(HttpServletRequest request)
Holds the current response write for the request |
GroovyPagesTemplateEngine |
getPagesTemplateEngine()
|
String |
getPluginContextPath(HttpServletRequest request)
Retrieves the plugin context path for the current request. |
ServletContext |
getServletContext()
Retrieves the servlet context instance |
groovy.lang.GroovyObject |
getTagLibraryForTag(HttpServletRequest request,
HttpServletResponse response,
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(HttpServletRequest request,
HttpServletResponse response,
String tagName,
String namespace)
Retrieves a Grails tag library from the request for the named tag in a given namespace. |
String |
getTemplateUri(String templateName,
ServletRequest request)
|
String |
getViewUri(String viewName,
HttpServletRequest request)
Retrieves the uri of a named view |
void |
setOut(HttpServletRequest currentRequest,
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 String PATH_TO_VIEWS
static final String GSP_TEMPLATE_ENGINE
static final String CONTENT_FORMAT
static final String REQUEST_FORMATS
static final String FLASH_SCOPE
static final String PARAMS_OBJECT
static final String CONTROLLER
static final String ERRORS
static final String MODEL_AND_VIEW
static final String OUT
static final String TAG_CACHE
static final String ID_PARAM
static final String GSP_TO_RENDER
static final String WEB_REQUEST
static final String PAGE_SCOPE
static final String GSP_TMP_WRITER
static final String REQUEST_REDIRECTED_ATTRIBUTE
static final String ACTION_NAME_ATTRIBUTE
static final String CONTROLLER_NAME_ATTRIBUTE
Method Detail |
---|
String getPluginContextPath(HttpServletRequest request)
groovy.lang.GroovyObject getController(ServletRequest request)
String getControllerUri(ServletRequest request)
request
-
String getApplicationUri(ServletRequest request)
request
-
ServletContext getServletContext()
FlashScope getFlashScope(ServletRequest request)
request
-
String getTemplateUri(String templateName, ServletRequest request)
templateName
- request
-
String getViewUri(String viewName, HttpServletRequest request)
viewName
- The name of the viewrequest
- The request instance
String getControllerActionUri(ServletRequest request)
request
-
Errors getErrors(ServletRequest request)
request
-
GroovyPagesTemplateEngine getPagesTemplateEngine()
groovy.lang.GroovyObject getTagLibraryForTag(HttpServletRequest request, HttpServletResponse response, String tagName)
request
- the request instanceresponse
- the response instanctetagName
- The name of the tag that contains the tag library
groovy.lang.GroovyObject getTagLibraryForTag(HttpServletRequest request, HttpServletResponse response, String tagName, String namespace)
request
- the request instanceresponse
- the response instanctetagName
- The name of the tag that contains the tag librarynamespace
- The namespace of the tag
Writer getOut(HttpServletRequest request)
void setOut(HttpServletRequest currentRequest, Writer out2)
currentRequest
- The requestout2
- The writer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |