org.codehaus.groovy.grails.web.servlet
Interface GrailsRequestContext

All Known Implementing Classes:
WebRequestDelegatingRequestContext

public interface GrailsRequestContext

Defines the methods and objects available during a Grails request context.

Since:
0.6

Method Summary
 java.lang.String getActionName()
           
 org.springframework.context.ApplicationContext getApplicationContext()
          The ApplicationContext instance.
 java.lang.String getControllerName()
           
 java.io.Writer getOut()
          The response writer.
 java.util.Map getParams()
          The params object.
 javax.servlet.http.HttpServletRequest getRequest()
          The request object.
 java.lang.String getRequestURI()
           
 javax.servlet.http.HttpServletResponse getResponse()
          The response object.
 javax.servlet.ServletContext getServletContext()
          The servletContext object.
 javax.servlet.http.HttpSession getSession()
          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