|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.web.servlet.DefaultGrailsApplicationAttributes
public class DefaultGrailsApplicationAttributes extends java.lang.Object
Holds knowledge about how to obtain certain attributes from either the ServletContext or the HttpServletRequest instance.
Constructor Summary | |
DefaultGrailsApplicationAttributes(javax.servlet.ServletContext context)
|
Method Summary | |
---|---|
org.springframework.context.ApplicationContext
|
getApplicationContext()
|
java.lang.String
|
getApplicationUri(javax.servlet.ServletRequest request)
@deprecated Use instead |
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)
|
GrailsApplication
|
getGrailsApplication()
|
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)
|
GroovyPagesTemplateEngine
|
getPagesTemplateEngine()
|
java.lang.String
|
getPluginContextPath(javax.servlet.http.HttpServletRequest request)
|
javax.servlet.ServletContext
|
getServletContext()
|
groovy.lang.GroovyObject
|
getTagLibraryForTag(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String tagName)
|
groovy.lang.GroovyObject
|
getTagLibraryForTag(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String tagName, java.lang.String 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)
|
java.lang.String
|
getViewUri(java.lang.String viewName, javax.servlet.http.HttpServletRequest request)
|
void
|
setOut(javax.servlet.http.HttpServletRequest request, java.io.Writer out2)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public DefaultGrailsApplicationAttributes(javax.servlet.ServletContext context)
Method Detail |
---|
public org.springframework.context.ApplicationContext getApplicationContext()
public String getApplicationUri(ServletRequest request) { public java.lang.String getApplicationUri(javax.servlet.ServletRequest request)
request
- The Servlet Reqest
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 GrailsApplication getGrailsApplication()
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)
public groovy.lang.GroovyObject getTagLibraryForTag(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String tagName, java.lang.String namespace)
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)
public void setOut(javax.servlet.http.HttpServletRequest request, java.io.Writer out2)
Groovy Documentation