Package org.grails.web.servlet
Interface GrailsRequestContext
-
- All Known Implementing Classes:
WebRequestDelegatingRequestContext
public interface GrailsRequestContextDefines the methods and objects available during a Grails request context.- Since:
- 0.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetActionName()org.springframework.context.ApplicationContextgetApplicationContext()The ApplicationContext instance.java.lang.StringgetControllerName()java.io.WritergetOut()The response writer.java.util.MapgetParams()The params object.javax.servlet.http.HttpServletRequestgetRequest()The request object.java.lang.StringgetRequestURI()javax.servlet.http.HttpServletResponsegetResponse()The response object.javax.servlet.ServletContextgetServletContext()The servletContext object.javax.servlet.http.HttpSessiongetSession()The session object.
-
-
-
Method Detail
-
getRequest
javax.servlet.http.HttpServletRequest getRequest()
The request object.- Returns:
- The request object
-
getResponse
javax.servlet.http.HttpServletResponse getResponse()
The response object.- Returns:
- The response object
-
getSession
javax.servlet.http.HttpSession getSession()
The session object.- Returns:
- The session object
-
getServletContext
javax.servlet.ServletContext getServletContext()
The servletContext object.- Returns:
- The servletContext Object
-
getParams
java.util.Map getParams()
The params object.- Returns:
- The params object
-
getApplicationContext
org.springframework.context.ApplicationContext getApplicationContext()
The ApplicationContext instance.- Returns:
- The ApplicationCOntext
-
getOut
java.io.Writer getOut()
The response writer.- Returns:
- The response writer
-
getActionName
java.lang.String getActionName()
- Returns:
- The Action name
-
getControllerName
java.lang.String getControllerName()
- Returns:
- The Controller Name
-
getRequestURI
java.lang.String getRequestURI()
- Returns:
- The Request URI
-
-