|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.grails.plugins.web.api.CommonWebApi
public class CommonWebApi extends java.lang.Object
API shared by controllers, tag libraries and any other web artifact.
Constructor Summary | |
CommonWebApi(GrailsPluginManager pluginManager)
|
|
CommonWebApi()
|
Method Summary | |
---|---|
java.lang.String
|
getActionName(java.lang.Object instance)
Obtains the currently executing action name |
org.springframework.context.ApplicationContext
|
getApplicationContext(java.lang.Object instance)
Obtains the ApplicationContext instance |
java.lang.String
|
getControllerName(java.lang.Object instance)
Obtains the currently executing controller name |
FlashScope
|
getFlash(java.lang.Object instance)
Obtains the Grails FlashScope instance |
GrailsApplication
|
getGrailsApplication(java.lang.Object instance)
Obtains the GrailsApplication instance |
GrailsApplicationAttributes
|
getGrailsAttributes(java.lang.Object instance)
Obtains the GrailsApplicationAttributes instance |
GrailsParameterMap
|
getParams(java.lang.Object instance)
Obtains the Grails parameter map |
java.lang.String
|
getPluginContextPath(java.lang.Object delegate)
Obtains the pluginContextPath |
javax.servlet.http.HttpServletRequest
|
getRequest(java.lang.Object instance)
Obtains the HttpServletRequest instance |
javax.servlet.http.HttpServletResponse
|
getResponse(java.lang.Object instance)
Obtains the HttpServletResponse instance |
javax.servlet.ServletContext
|
getServletContext(java.lang.Object instance)
Obtains the ServletContext instance |
javax.servlet.http.HttpSession
|
getSession(java.lang.Object instance)
Obtains the HttpSession instance |
GrailsWebRequest
|
getWebRequest(java.lang.Object instance)
Obtains the currently executing web request |
void
|
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void
|
setGrailsApplication(GrailsApplication grailsApplication)
|
void
|
setServletContext(javax.servlet.ServletContext servletContext)
|
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 CommonWebApi(GrailsPluginManager pluginManager)
public CommonWebApi()
Method Detail |
---|
public java.lang.String getActionName(@SuppressWarnings("unused") java.lang.Object instance)
public org.springframework.context.ApplicationContext getApplicationContext(java.lang.Object instance)
public java.lang.String getControllerName(@SuppressWarnings("unused") java.lang.Object instance)
public FlashScope getFlash(@SuppressWarnings("unused") java.lang.Object instance)
public GrailsApplication getGrailsApplication(@SuppressWarnings("unused") java.lang.Object instance)
public GrailsApplicationAttributes getGrailsAttributes(@SuppressWarnings("unused") java.lang.Object instance)
public GrailsParameterMap getParams(@SuppressWarnings("unused") java.lang.Object instance)
public java.lang.String getPluginContextPath(java.lang.Object delegate)
delegate
- The object the method is being invoked on
public javax.servlet.http.HttpServletRequest getRequest(@SuppressWarnings("unused") java.lang.Object instance)
public javax.servlet.http.HttpServletResponse getResponse(@SuppressWarnings("unused") java.lang.Object instance)
public javax.servlet.ServletContext getServletContext(@SuppressWarnings("unused") java.lang.Object instance)
public javax.servlet.http.HttpSession getSession(@SuppressWarnings("unused") java.lang.Object instance)
public GrailsWebRequest getWebRequest(@SuppressWarnings("unused") java.lang.Object instance)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
public void setGrailsApplication(GrailsApplication grailsApplication)
public void setServletContext(javax.servlet.ServletContext servletContext)
Groovy Documentation