OutgoingHttpRequest

public final class OutgoingHttpRequest extends Object

Contains the information that describe an HTTP request made by the SDK.

Public Constructor Summary

OutgoingHttpRequest(String method, String url)
Creates an OutgoingHttpRequest from the HTTP method and URL.

Public Method Summary

HttpContent
getContent()
Returns any content that was sent with the request.
Map<String, Object>
getHeaders()
Returns the headers set on the request.
String
getMethod()
Returns the HTTP method of the request.
String
getUrl()
Returns the URL of the request.

Inherited Method Summary

Public Constructors

public OutgoingHttpRequest (String method, String url)

Creates an OutgoingHttpRequest from the HTTP method and URL.

Parameters
method HTTP method name.
url Target HTTP URL of the request.

Public Methods

public HttpContent getContent ()

Returns any content that was sent with the request.

Returns
  • HTTP content or null.

public Map<String, Object> getHeaders ()

Returns the headers set on the request.

Returns
  • An immutable map of headers (possibly empty).

public String getMethod ()

Returns the HTTP method of the request.

Returns
  • An HTTP method string (e.g. GET).

public String getUrl ()

Returns the URL of the request.

Returns
  • An absolute HTTP URL.