GrailsRequestStateLookupStrategy (Grails 6.0.0)

Package: org.grails.web.servlet.mvc

## [Java] Interface GrailsRequestStateLookupStrategy

-     public interface GrailsRequestStateLookupStrategy

  Strategy interface for obtaining details about the currently executing request

  Authors:
    Graeme Rocher
  Since:
    2.0

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public java.lang.String` | `getActionName(java.lang.String controllerName)` The action name for the given controller name
    `` | `public java.lang.String` | `getActionName()` The action name
    `` | `public java.lang.String` | `getCharacterEncoding()` The character encoding of the request
    `` | `public java.lang.String` | `getContextPath()` Obtains the context path to use from the request
    `` | `public java.lang.String` | `getControllerName()` The controller name
    `` | `public java.lang.String` | `getControllerNamespace()` The controller namespace
    `` | `public java.lang.String` | `getHttpMethod()` Returns: The HTTP method
    `` | `public GrailsWebRequest` | `getWebRequest()` Returns: the current request

- - ### Method Detail

    - #### public 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

    - #### public java.lang.String getActionName()

      The action name

      Returns:
        The action name or null if not known

    - #### public java.lang.String getCharacterEncoding()

      The character encoding of the request

      Returns:
        The character encoding

    - #### public java.lang.String getContextPath()

      Obtains the context path to use from the request

      Returns:
        The context path

    - #### public java.lang.String getControllerName()

      The controller name

      Returns:
        The controller name or null if not known

    - #### public java.lang.String getControllerNamespace()

      The controller namespace

      Returns:
        The controller namespace or null if not known

    - #### public java.lang.String getHttpMethod()

      Returns:
        The HTTP method

    - #### public GrailsWebRequest getWebRequest()

      Returns:
        the current request