Interface Request


public interface Request
This interface represents the request of the current user interaction.
  • Method Details

    • getHeaderNames

      List<String> getHeaderNames()
      Get the header names.
      Returns:
      The header names.
    • getHeader

      String getHeader(String name)
      Get the first value of the header with the specified name. If such header does not exist, this method returns NULL.
      Parameters:
      name - The header name.
      Returns:
      The first header value.
    • getHeaders

      List<String> getHeaders(String name)
      Get the values of the header with the specified name. If such header does not exist, this method returns an empty list.
      Parameters:
      name - The header name.
      Returns:
      The header values.
    • getCookies

      List<Cookie> getCookies()
      Get the cookies.
      Returns:
      The cookies.
    • getParameterNames

      List<String> getParameterNames()
      Get the (GET and POST) parameter names.
      Returns:
      The parameter names.
    • getParameter

      String getParameter(String name)
      Get the first value of the (GET and POST) parameter with the specified name. If such parameter does not exist, this method returns NULL.
      Parameters:
      name - The parameter name.
      Returns:
      The first parameter value.
    • getParameters

      List<String> getParameters(String name)
      Get the values of the (GET and POST) parameter with the specified name. If such parameter does not exist, this method returns an empty list.
      Parameters:
      name - The parameter name.
      Returns:
      The parameter values.