Class HttpRequest

java.lang.Object
com.bandwidth.http.request.HttpRequest
Direct Known Subclasses:
HttpBodyRequest

public class HttpRequest
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    HttpRequest​(HttpMethod _method, java.lang.String _queryUrl, Headers _headers, java.util.List<java.util.AbstractMap.SimpleEntry<java.lang.String,​java.lang.Object>> _parameters)
    Initializes a simple http request
  • Method Summary

    Modifier and Type Method Description
    Headers getHeaders()
    Headers for the http request
    HttpMethod getHttpMethod()
    Headers for the http request
    java.util.List<java.util.AbstractMap.SimpleEntry<java.lang.String,​java.lang.Object>> getParameters()
    Parameters for the http request
    java.lang.String getQueryUrl()
    Query url for the http request

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HttpRequest

      public HttpRequest​(HttpMethod _method, java.lang.String _queryUrl, Headers _headers, java.util.List<java.util.AbstractMap.SimpleEntry<java.lang.String,​java.lang.Object>> _parameters)
      Initializes a simple http request
      Parameters:
      _method - The HTTP method to use. Can be GET, HEAD, PUT, POST, DELETE and PATCH
      _queryUrl - The http url to create the HTTP Request. Expect a fully qualified absolute Url
      _headers - The key-value map of all http headers to be sent
      _parameters - The form data values in a key-value map
  • Method Details

    • getHttpMethod

      public HttpMethod getHttpMethod()
      Headers for the http request
    • getHeaders

      public Headers getHeaders()
      Headers for the http request
    • getQueryUrl

      public java.lang.String getQueryUrl()
      Query url for the http request
    • getParameters

      public java.util.List<java.util.AbstractMap.SimpleEntry<java.lang.String,​java.lang.Object>> getParameters()
      Parameters for the http request