public class HttpBodyRequest extends HttpRequest
| Constructor and Description |
|---|
HttpBodyRequest(HttpMethod method,
StringBuilder queryUrlBuilder,
Headers headers,
Map<String,Object> queryParams,
Object body)
Create a request with explicit body.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getBody()
Body for the http request.
|
String |
toString()
Converts this HttpBodyRequest into string format.
|
addQueryParameter, getHeaders, getHttpMethod, getParameters, getQueryParameters, getQueryUrlpublic HttpBodyRequest(HttpMethod method, StringBuilder queryUrlBuilder, Headers headers, Map<String,Object> queryParams, Object body)
method - The HTTP method to use. Can be PUT, POST, DELETE and PATCHqueryUrlBuilder - The fully qualified absolute http url to create the HTTP Request.headers - The key-value map of all http headers to be sentqueryParams - The query parameters in a key-value mapbody - The object to be sent as body after serializationpublic Object getBody()
public String toString()
toString in class HttpRequestCopyright © 2022. All rights reserved.