Groovy Documentation

org.codehaus.groovy.grails.web.servlet
[Java] Interface GrailsRequestContext


public interface GrailsRequestContext

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

Authors:
Graeme Rocher
Since:
0.6


Method Summary
java.lang.String getActionName()

@return The Action name

ApplicationContext getApplicationContext()

The ApplicationContext instance.

java.lang.String getControllerName()

@return The Controller Name

java.io.Writer getOut()

The response writer.

java.util.Map getParams()

The params object.

HttpServletRequest getRequest()

The request object.

java.lang.String getRequestURI()

@return The Request URI

HttpServletResponse getResponse()

The response object.

ServletContext getServletContext()

The servletContext object.

HttpSession getSession()

The session object.

 

Method Detail

getActionName

public java.lang.String getActionName()
Returns:
The Action name


getApplicationContext

public ApplicationContext getApplicationContext()
The ApplicationContext instance.
Returns:
The ApplicationCOntext


getControllerName

public java.lang.String getControllerName()
Returns:
The Controller Name


getOut

public java.io.Writer getOut()
The response writer.
Returns:
The response writer


getParams

@SuppressWarnings("rawtypes")
public java.util.Map getParams()
The params object.
Returns:
The params object


getRequest

public HttpServletRequest getRequest()
The request object.
Returns:
The request object


getRequestURI

public java.lang.String getRequestURI()
Returns:
The Request URI


getResponse

public HttpServletResponse getResponse()
The response object.
Returns:
The response object


getServletContext

public ServletContext getServletContext()
The servletContext object.
Returns:
The servletContext Object


getSession

public HttpSession getSession()
The session object.
Returns:
The session object


 

Groovy Documentation