| Constructor and Description |
|---|
Body(byte[] data,
int length,
okhttp3.MediaType contentType,
String sha256Hash,
String md5Hash)
Creates Body for byte array.
|
Body(Object body,
okhttp3.MediaType contentType,
String sha256Hash,
String md5Hash)
Creates Body for ByteBuffer, string or XML encodable object.
|
Body(RandomAccessFile file,
long length,
okhttp3.MediaType contentType,
String sha256Hash,
String md5Hash)
Creates Body for RandomAccessFile.
|
Body(okhttp3.RequestBody requestBody)
Creates Body for okhttp3 RequestBody.
|
| Modifier and Type | Method and Description |
|---|---|
okhttp3.MediaType |
contentType()
Gets content type of this body.
|
Http.Headers |
headers()
Creates headers for this body.
|
boolean |
isHttpRequestBody()
Checks whether this body is okhttp3 RequestBody.
|
String |
md5Hash()
Gets SHA256 hash of this body.
|
String |
sha256Hash()
Gets SHA256 hash of this body.
|
Http.RequestBody |
toRequestBody()
Creates HTTP RequestBody for this body.
|
String |
toString() |
public Body(okhttp3.RequestBody requestBody)
public Body(RandomAccessFile file, long length, okhttp3.MediaType contentType, String sha256Hash, String md5Hash)
public Body(byte[] data,
int length,
okhttp3.MediaType contentType,
String sha256Hash,
String md5Hash)
public Body(Object body, okhttp3.MediaType contentType, String sha256Hash, String md5Hash) throws MinioException
MinioExceptionpublic okhttp3.MediaType contentType()
public String sha256Hash()
public String md5Hash()
public boolean isHttpRequestBody()
public Http.Headers headers()
public Http.RequestBody toRequestBody() throws MinioException
MinioException