Interface HttpRequest

All Superinterfaces:
HttpMessage
All Known Implementing Classes:
HttpRequestImpl

public interface HttpRequest extends HttpMessage
An HTTP request element
  • Method Details

    • containsParameter

      boolean containsParameter(String name)
      Determines whether this request contains at least one parameter with the specified name
      Parameters:
      name - The parameter name
      Returns:
      true if this request contains at least one parameter with the specified name
    • getParameter

      String getParameter(String name)
      Returns the value of a request parameter as a String, or null if the parameter does not exist. If the request contained multiple parameters with the same name, this method returns the first parameter encountered in the request with the specified name
      Parameters:
      name - The parameter name
      Returns:
      The value
    • getQueryString

      String getQueryString()
      Returns:
      The query part
    • getParameters

      Map<String, List<String>> getParameters()
      Returns:
      a read only Map of query parameters whose key is a String and whose value is a List of Strings.
    • getMethod

      HttpMethod getMethod()
      Return the HTTP method used for this message HttpMethod
      Returns:
      the method
    • getRequestPath

      String getRequestPath()
      Return the HTTP request path
      Returns:
      the request path