org.codehaus.groovy.grails.web.servlet.mvc
Interface GrailsRequestStateLookupStrategy

All Known Implementing Classes:
DefaultRequestStateLookupStrategy

public interface GrailsRequestStateLookupStrategy

Strategy interface for obtaining details about the currently executing request

Since:
2.0

Method Summary
 java.lang.String getActionName()
          The action name
 java.lang.String getActionName(java.lang.String controllerName)
          The action name for the given controller name
 java.lang.String getCharacterEncoding()
          The character encoding of the request
 java.lang.String getContextPath()
          Obtains the context path to use from the request
 java.lang.String getControllerName()
          The controller name
 

Method Detail

getContextPath

java.lang.String getContextPath()
Obtains the context path to use from the request

Returns:
The context path

getCharacterEncoding

java.lang.String getCharacterEncoding()
The character encoding of the request

Returns:
The character encoding

getControllerName

java.lang.String getControllerName()
The controller name

Returns:
The controller name or null if not known

getActionName

java.lang.String getActionName(java.lang.String controllerName)
The action name for the given controller name

Parameters:
controllerName - The controller name
Returns:
The action name or null if not known

getActionName

java.lang.String getActionName()
The action name

Returns:
The action name or null if not known