public interface EntitySenderRequestBuilderBase<T extends EntitySenderRequestBuilderBase<?>> extends HttpRequestBuilder<T>
| Modifier and Type | Method and Description |
|---|---|
T |
addEntityFileUpload(String path,
boolean isClasspathPath,
String name)
Adds a file to upload.
|
T |
addEntityFileUpload(String path,
String name)
Adds a file to upload.
|
T |
addEntityFormDataValue(String name,
String value)
Adds a value to a Form data.
|
T |
setEntity(org.spincast.shaded.org.apache.http.HttpEntity entity)
Sets an custom
HttpEntity entity to be sent. |
T |
setEntityFormData(String name,
List<String> values)
Sets a Form data entity.
|
T |
setEntityFormDatas(Map<String,List<String>> params)
Sets the Form datas entity.
|
T |
setEntityJson(Object object)
Sets a
Json entity to be sent. |
T |
setEntityString(String entity,
String contentType)
Sets a String entity.
|
T |
setEntityXml(Object object)
Sets a
XML entity to be sent. |
addCookie, addCookie, addCookie, addCookies, addHeaderValue, addHeaderValues, addHTMLAcceptHeader, addJsonAcceptHeader, addPlainTextAcceptHeader, addXMLAcceptHeader, disableSslCertificateErrors, send, setHeaders, setHeaderValues, setHttpAuthCredentials, setHttpClientBuilder, setRequestConfigT setEntityFormDatas(Map<String,List<String>> params)
HttpEntity
When you set or add an entity of a new type, the
existing entity is overwritten.T setEntityFormData(String name, List<String> values)
HttpEntity
When you set or add an entity of a new type, the
existing entity is overwritten.T addEntityFormDataValue(String name, String value)
HttpEntity
When you set or add an entity of a new type, the
existing entity is overwritten.T setEntityString(String entity, String contentType)
HttpEntity
When you set or add an entity of a new type, the
existing entity is overwritten.T setEntity(org.spincast.shaded.org.apache.http.HttpEntity entity)
HttpEntity entity to be sent.
Only one type of entity can be set amongs:
- Form datas entity
- String entity
- File upload
- custom HttpEntity
When you set or add an entity of a new type, the
existing entity is overwritten.T setEntityJson(Object object)
Json entity to be sent.
The object will be converted to a Json's
String representation and sent using the application/json
Content-Type.
Only one type of entity can be set amongs:
- Form datas entity
- String entity
- File upload
- Custom HttpEntity
When you set or add an entity of a new type, the
existing entity is overwritten.T setEntityXml(Object object)
XML entity to be sent.
The object will be converted to a XML
and sent using the application/xml
Content-Type.
Only one type of entity can be set amongs:
- Form datas entity
- String entity
- File upload
- Custom HttpEntity
When you set or add an entity of a new type, the
existing entity is overwritten.T addEntityFileUpload(String path, String name)
HttpEntitypath - the path to the file to upload,
on the file systemname - the name to use for the uploaded file.T addEntityFileUpload(String path, boolean isClasspathPath, String name)
HttpEntitypath - 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 © 2017. All rights reserved.