public interface RequestBodyEntity extends HttpRequest<RequestBodyEntity>, Body
| Modifier and Type | Method and Description |
|---|---|
RequestBodyEntity |
body(byte[] bodyBytes)
Set a byte array as the body of the request
|
RequestBodyEntity |
body(InputStream body)
Set a InputStream as the body
|
RequestBodyEntity |
body(JSONElement body)
Set JSON on the body
|
RequestBodyEntity |
body(JsonNode jsonBody)
Set JSON on the body
|
RequestBodyEntity |
body(Object body)
Set a Object as the body of the request.
|
RequestBodyEntity |
body(String bodyAsString)
Set a String as the body of the request
|
RequestBodyEntity |
charset(Charset charset)
Set the Charset encoding for the Content-Type.
|
RequestBodyEntity |
contentType(String type) |
default RequestBodyEntity |
noCharset()
Removes any Charset for the Content-Type for when servers cannot process it.
|
RequestBodyEntity |
uploadMonitor(ProgressMonitor monitor)
Set a Progress upload monitor suitable for drawing progress bars and whatnot.
|
accept, asBytes, asBytesAsync, asBytesAsync, asEmpty, asEmptyAsync, asEmptyAsync, asFile, asFileAsync, asFileAsync, asJson, asJsonAsync, asJsonAsync, asObject, asObject, asObject, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asPaged, asString, asStringAsync, asStringAsync, basicAuth, connectTimeout, cookie, cookie, cookie, downloadMonitor, getBody, getConnectTimeout, getCreationTime, getHeaders, getHttpMethod, getProxy, getSocketTimeout, getUrl, header, headerReplace, headers, headersReplace, proxy, proxy, queryString, queryString, queryString, responseEncoding, routeParam, routeParam, socketTimeout, thenConsume, thenConsumeAsync, toSummary, withObjectMappergetCharset, getField, getMode, getMonitor, isEntityBody, isMultiPart, multiParts, uniPartRequestBodyEntity body(byte[] bodyBytes)
bodyBytes - the byte[]RequestBodyEntity body(String bodyAsString)
bodyAsString - the StringRequestBodyEntity body(JsonNode jsonBody)
jsonBody - the JsonNodeRequestBodyEntity body(InputStream body)
body - the ObjectRequestBodyEntity body(JSONElement body)
body - the JSONElementRequestBodyEntity body(Object body)
body - the ObjectRequestBodyEntity charset(Charset charset)
charset - the charsetdefault RequestBodyEntity noCharset()
RequestBodyEntity contentType(String type)
type - The content mime typeRequestBodyEntity uploadMonitor(ProgressMonitor monitor)
monitor - a monitorCopyright © 2023. All rights reserved.