| Modifier and Type | Class and Description |
|---|---|
static class |
MultipartBody.Builder |
static class |
MultipartBody.Part |
WebBody.BytesBody| Constructor and Description |
|---|
MultipartBody(java.util.List<MultipartBody.Part> parts) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
contentType()
The mime content type for this data.
|
java.util.List<MultipartBody.Part> |
getParts()
Gets the parts which make up this body.
|
long |
length()
The length of the data.
|
boolean |
multiOpenAllowed()
Checks if this WebBody supports
WebBody.open() being
called multiple times. |
java.io.InputStream |
open()
Open a stream to read the body data.
|
public MultipartBody(java.util.List<MultipartBody.Part> parts)
public java.util.List<MultipartBody.Part> getParts()
public java.io.InputStream open()
WebBodypublic boolean multiOpenAllowed()
WebBodyWebBody.open() being
called multiple times.multiOpenAllowed in interface WebBodypublic long length()
WebBodypublic java.lang.String contentType()
WebBodycontentType in interface WebBody