public interface MultipartBody extends HttpRequest<MultipartBody>, Body
| Modifier and Type | Method and Description |
|---|---|
MultipartBody |
charset(Charset charset)
Set the encoding of the request body
|
MultipartBody |
contentType(String mimeType)
Set the mime-type of the request body
|
MultipartBody |
field(String name,
byte[] bytes,
ContentType contentType,
String fileName)
add a simple field with a name and value
|
MultipartBody |
field(String name,
byte[] bytes,
String fileName)
add a simple field with a name and value
|
MultipartBody |
field(String name,
Collection<?> values)
add a simple field with a name and value
|
MultipartBody |
field(String name,
File file)
add a simple field with a name and value
|
MultipartBody |
field(String name,
File file,
String contentType)
add a simple field with a name and value
|
MultipartBody |
field(String name,
InputStream value,
ContentType contentType)
add a simple field with a name and value
|
MultipartBody |
field(String name,
InputStream stream,
ContentType contentType,
String fileName)
add a simple field with a name and value
|
MultipartBody |
field(String name,
InputStream stream,
String fileName)
add a simple field with a name and value
|
MultipartBody |
field(String name,
String value)
add a simple field with a name and value
|
MultipartBody |
field(String name,
String value,
String contentType)
add a simple field with a name and value
|
MultipartBody |
mode(MultipartMode value)
Set the Apache Mode.
|
MultipartBody |
uploadMonitor(ProgressMonitor monitor)
Set a file 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, proxy, queryString, queryString, queryString, responseEncoding, routeParam, routeParam, socketTimeout, thenConsume, thenConsumeAsync, toSummary, withObjectMappergetCharset, getMode, getMonitor, isEntityBody, isMultiPart, multiParts, uniPartMultipartBody field(String name, String value)
name: - the Name of the form fieldvalue: - The string value for the fieldMultipartBody field(String name, String value, String contentType)
name: - the Name of the form fieldvalue: - The string value for the fieldcontentType: - the content type of the valueMultipartBody field(String name, Collection<?> values)
name: - the Name of the form fieldvalues: - A collection of values for the same name.MultipartBody field(String name, File file)
name: - the Name of the form fieldfile: - A File object.MultipartBody field(String name, File file, String contentType)
name: - the Name of the form fieldfile: - A File object.contentType: - the content mime-type of the fileMultipartBody field(String name, InputStream value, ContentType contentType)
name: - the Name of the form fieldvalue: - A input streamcontentType: - the content mime-type of the fileMultipartBody field(String name, InputStream stream, ContentType contentType, String fileName)
name: - the Name of the form fieldstream: - A input streamcontentType: - the content mime-type of the filefileName: - the name of the file which will be included in the file part headerMultipartBody field(String name, byte[] bytes, ContentType contentType, String fileName)
name: - the Name of the form fieldbytes: - The raw bytes for the filecontentType: - the content mime-type of the filefileName: - the name of the file which will be included in the file part headerMultipartBody field(String name, InputStream stream, String fileName)
name: - the Name of the form fieldstream: - The raw bytes for the filefileName: - the name of the file which will be included in the file part headerMultipartBody field(String name, byte[] bytes, String fileName)
name: - the Name of the form fieldbytes: - The raw bytes for the filefileName: - the name of the file which will be included in the file part headerMultipartBody charset(Charset charset)
charset - the character set encoding of the bodyMultipartBody contentType(String mimeType)
mimeType - the mime type of the bodyMultipartBody mode(MultipartMode value)
value - the value of the modeMultipartBody uploadMonitor(ProgressMonitor monitor)
monitor - a monitorCopyright © 2020. All rights reserved.