public interface BodySenderRequestBuilderBase<T extends BodySenderRequestBuilderBase<?>> extends HttpRequestBuilder<T>
| Modifier and Type | Method and Description |
|---|---|
T |
addFileToUploadBody(String path,
boolean isClasspathPath,
String name)
Adds a file to upload body.
|
T |
addFileToUploadBody(String path,
String name)
Adds a file to upload body.
|
T |
addFormBodyFieldValue(String fieldName,
String value)
Adds a value to a Form field.
|
T |
setBody(org.spincast.shaded.org.apache.http.HttpEntity entity)
Sets an custom
HttpEntity body to be sent. |
T |
setFormBodyField(String fieldName,
List<String> values)
Sets a field on the form body, with its values.
|
T |
setFormBodyFields(Map<String,List<String>> params)
Sets fields on the form body.
|
T |
setJsonStringBody(Object object)
Sets a
Json body to be sent. |
T |
setStringBody(String entity,
String contentType)
Sets a String body.
|
T |
setXmlStringBody(Object object)
Sets a
XML body to be sent. |
addHeaderValue, addHeaderValues, addHTMLAcceptHeader, addJsonAcceptHeader, addPlainTextAcceptHeader, addXMLAcceptHeader, disableSslCertificateErrors, send, setCookie, setCookie, setCookie, setCookies, setHeaders, setHeaderValues, setHttpAuthCredentials, setHttpClientBuilder, setRequestConfigT setBody(org.spincast.shaded.org.apache.http.HttpEntity entity)
HttpEntity body to be sent.
Only one type of body can be set amongs:
HttpEntity body
When you set or add something to a new type of body, the existing body is overwritten, if there is one.
T setFormBodyFields(Map<String,List<String>> params)
A form body can contain more than one fields and each field may have multiple values.
Overwrites any existing Form fields.
Only one type of body can be set amongs:
HttpEntity body
When you set or add something to a new type of body, the existing body is overwritten, if there is one.
T setFormBodyField(String fieldName, List<String> values)
Overwrites an existing field of the same name, but keeps the other ones.
Only one type of body can be set amongs:
HttpEntity body
When you set or add something to a new type of body, the existing body is overwritten, if there is one.
T addFormBodyFieldValue(String fieldName, String value)
Keeps the existing values of the field.
Only one type of body can be set amongs:
HttpEntity body
When you set or add something to a new type of body, the existing body is overwritten, if there is one.
T setStringBody(String entity, String contentType)
Only one type of body can be set amongs:
HttpEntity body
When you set or add something to a new type of body, the existing body is overwritten, if there is one.
T setJsonStringBody(Object object)
Json body to be sent.
The specified object will be converted to a Json's
String representation and sent using the application/json
Content-Type.
Only one type of body can be set amongs:
HttpEntity body
When you set or add something to a new type of body, the existing body is overwritten, if there is one.
T setXmlStringBody(Object object)
XML body to be sent.
The specified object will be converted to XML
and sent using the application/xml
Content-Type.
Only one type of body can be set amongs:
HttpEntity body
When you set or add something to a new type of body, the existing body is overwritten, if there is one.
T addFileToUploadBody(String path, String name)
More than one file can be uploaded at one time. The specified file is added to the existing ones.
Only one type of body can be set amongs:
HttpEntity body
When you set or add something to a new type of body, the existing body is overwritten, if there is one.
path - the path to the file to upload,
on the file system.name - the name to use for the uploaded file.T addFileToUploadBody(String path, boolean isClasspathPath, String name)
More than one file can be uploaded at one time. The specified file is added to the existing ones.
Only one type of body can be set amongs:
Only one type of body can be set amongs:
HttpEntity body
When you set or add something to a new type of body, the existing body is overwritten, if there is one.
path - the path to the file to uploadisClasspathPath - if true, the path to the file to upload is
on the classpath, otherwise, it's on the file system.name - the name to use for the uploaded file.Copyright © 2018. All rights reserved.