public class BaseRequest
extends HttpPart
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseRequest.Companion |
| Modifier and Type | Field and Description |
|---|---|
static BaseRequest.Companion |
Companion |
| Constructor and Description |
|---|
BaseRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isMultipartFileUpload()
If this request represents a multipart file upload
|
BaseRequest |
withMultipartFileUpload(java.lang.String partName,
java.lang.String filename,
ContentType contentType,
java.lang.String contents)
Sets up the request as a multipart file upload
|
BaseRequest |
withMultipartFileUpload(java.lang.String partName,
java.lang.String filename,
java.lang.String contentType,
java.lang.String contents)
Sets up the request as a multipart file upload
|
charset, contentTypeHeader, detectContentType, getBody, getHeaders, getMatchingRules, jsonBody, mimeType, setBody, setDefaultMimeType, setHeaders, setMatchingRules, xmlBodypublic static BaseRequest.Companion Companion
public BaseRequest withMultipartFileUpload(java.lang.String partName, java.lang.String filename, ContentType contentType, java.lang.String contents)
Sets up the request as a multipart file upload
partName - The attribute name in the multipart upload that the file is included incontentType - The content type of the file datacontents - File contentspublic BaseRequest withMultipartFileUpload(java.lang.String partName, java.lang.String filename, java.lang.String contentType, java.lang.String contents)
Sets up the request as a multipart file upload
partName - The attribute name in the multipart upload that the file is included incontentType - The content type of the file datacontents - File contentspublic boolean isMultipartFileUpload()
If this request represents a multipart file upload