Package org.grails.web.servlet.mvc
Interface GrailsRequestStateLookupStrategy
-
- All Known Implementing Classes:
DefaultRequestStateLookupStrategy
public interface GrailsRequestStateLookupStrategyStrategy interface for obtaining details about the currently executing request- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetActionName()The action namejava.lang.StringgetActionName(java.lang.String controllerName)The action name for the given controller namejava.lang.StringgetCharacterEncoding()The character encoding of the requestjava.lang.StringgetContextPath()Obtains the context path to use from the requestjava.lang.StringgetControllerName()The controller namejava.lang.StringgetControllerNamespace()The controller namespacejava.lang.StringgetHttpMethod()GrailsWebRequestgetWebRequest()
-
-
-
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
-
getControllerNamespace
java.lang.String getControllerNamespace()
The controller namespace- Returns:
- The controller namespace 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
-
getHttpMethod
java.lang.String getHttpMethod()
- Returns:
- The HTTP method
-
getWebRequest
GrailsWebRequest getWebRequest()
- Returns:
- the current request
-
-