Package com.bandwidth.http.request
Class HttpBodyRequest
java.lang.Object
com.bandwidth.http.request.HttpRequest
com.bandwidth.http.request.HttpBodyRequest
public class HttpBodyRequest extends HttpRequest
-
Constructor Summary
Constructors Constructor Description HttpBodyRequest(HttpMethod _method, java.lang.String _queryUrl, Headers _headers, java.lang.String _body)
Create a request with explicit body -
Method Summary
Modifier and Type Method Description java.lang.String
getBody()
Body for the http requestMethods inherited from class com.bandwidth.http.request.HttpRequest
getHeaders, getHttpMethod, getParameters, getQueryUrl
-
Constructor Details
-
HttpBodyRequest
public HttpBodyRequest(HttpMethod _method, java.lang.String _queryUrl, Headers _headers, java.lang.String _body)Create a request with explicit body- Parameters:
_method
- The HTTP method to use. Can be 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_body
- The object to be sent as body after serialization
-
-
Method Details
-
getBody
public java.lang.String getBody()Body for the http request
-