Interface GrailsRequestStateLookupStrategy

  • All Known Implementing Classes:
    DefaultRequestStateLookupStrategy

    public interface GrailsRequestStateLookupStrategy
    Strategy interface for obtaining details about the currently executing request
    Since:
    2.0
    • 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