Interface HttpRequest


public interface HttpRequest
Author:
Vladlen Larionov
  • Method Summary

    Modifier and Type Method Description
    void dump​(java.io.Writer out)
    Dump request data to characters output for further logging
    java.util.Map<java.lang.String,​HttpCookie> getCookies()
    Returns read-only cookies
    java.util.Map<java.lang.String,​java.lang.String> getHeaders()
    Returns read-only http headers
    java.lang.String getHost()  
    java.io.InputStream getInputStream()
    Returns body input stream
    java.lang.Integer getPort()  
    HttpValues<java.lang.String,​HttpFile> getPostFiles()
    Returns read-only file model from post map with Content-Type: multipart/form-data
    HttpValues<java.lang.String,​java.lang.String> getPostParameters()
    Returns read-only string parameters model from post map with Content-Type: application/x-www-form-urlencoded or multipart/form-data except files
    HttpValues<java.lang.String,​java.lang.String> getQueryParameters()
    Returns read-only query string parameters
    java.lang.String getQueryString()  
    HttpMethod getRequestMethod()
    Returns the http method.
    java.lang.String getRequestScheme()
    Http map uri protocol string: http, https etc.
    java.lang.String getRequestURI()
    Part of the query string behind the name of the partition and to the parameters (prior to ? sign).
  • Method Details

    • getRequestMethod

      HttpMethod getRequestMethod()
      Returns the http method. validation.e GET or POST, etc.
      Returns:
      http method as uppercase string
    • getRequestScheme

      java.lang.String getRequestScheme()
      Http map uri protocol string: http, https etc.
      Returns:
    • getHost

      java.lang.String getHost()
    • getPort

      java.lang.Integer getPort()
    • getRequestURI

      java.lang.String getRequestURI()
      Part of the query string behind the name of the partition and to the parameters (prior to ? sign).
      Returns:
    • getQueryString

      java.lang.String getQueryString()
    • getHeaders

      java.util.Map<java.lang.String,​java.lang.String> getHeaders()
      Returns read-only http headers
      Returns:
    • getCookies

      java.util.Map<java.lang.String,​HttpCookie> getCookies()
      Returns read-only cookies
      Returns:
    • getQueryParameters

      HttpValues<java.lang.String,​java.lang.String> getQueryParameters()
      Returns read-only query string parameters
      Returns:
    • getPostParameters

      HttpValues<java.lang.String,​java.lang.String> getPostParameters()
      Returns read-only string parameters model from post map with Content-Type: application/x-www-form-urlencoded or multipart/form-data except files
      Returns:
    • getPostFiles

      HttpValues<java.lang.String,​HttpFile> getPostFiles()
      Returns read-only file model from post map with Content-Type: multipart/form-data
      Returns:
    • getInputStream

      java.io.InputStream getInputStream()
      Returns body input stream
      Returns:
    • dump

      void dump​(java.io.Writer out)
      Dump request data to characters output for further logging