|
|||||||||
| PREV CLASS NEXT CLASS | 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
API shared by controllers, tag libraries and any other web artifact.
| Constructor Summary | |
|---|---|
CommonWebApi()
|
|
CommonWebApi(org.codehaus.groovy.grails.plugins.GrailsPluginManager pluginManager)
|
|
| Method Summary | |
|---|---|
protected GrailsWebRequest |
currentRequestAttributes()
|
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 |
org.codehaus.groovy.grails.commons.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(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
|
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommonWebApi(org.codehaus.groovy.grails.plugins.GrailsPluginManager pluginManager)
public CommonWebApi()
| Method Detail |
|---|
public GrailsParameterMap getParams(java.lang.Object instance)
public FlashScope getFlash(java.lang.Object instance)
public javax.servlet.http.HttpSession getSession(java.lang.Object instance)
public javax.servlet.http.HttpServletRequest getRequest(java.lang.Object instance)
public javax.servlet.ServletContext getServletContext(java.lang.Object instance)
public javax.servlet.http.HttpServletResponse getResponse(java.lang.Object instance)
public GrailsApplicationAttributes getGrailsAttributes(java.lang.Object instance)
public org.codehaus.groovy.grails.commons.GrailsApplication getGrailsApplication(java.lang.Object instance)
public org.springframework.context.ApplicationContext getApplicationContext(java.lang.Object instance)
public java.lang.String getActionName(java.lang.Object instance)
public java.lang.String getControllerName(java.lang.Object instance)
public GrailsWebRequest getWebRequest(java.lang.Object instance)
public java.lang.String getPluginContextPath(java.lang.Object delegate)
delegate - The object the method is being invoked on
public void setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
setGrailsApplication in interface org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAwarepublic void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAware
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionprotected GrailsWebRequest currentRequestAttributes()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||