public class RestMultipart extends Object
RestRequest.| Modifier and Type | Class and Description |
|---|---|
static class |
RestMultipart.RestMultipartType
An http verb (those supported).
|
| Constructor and Description |
|---|
RestMultipart(RestMultipart.RestMultipartType type,
String stringValue) |
RestMultipart(RestMultipart.RestMultipartType type,
String stringValue,
String contentType) |
RestMultipart(RestMultipart.RestMultipartType type,
String stringValue,
String contentType,
String charset) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCharset() |
String |
getContentType() |
RestMultipart.RestMultipartType |
getType() |
String |
getValue() |
int |
hashCode() |
RestMultipart |
setCharset(String charset)
Sets the charset of multipart upload file name for this request.
|
RestMultipart |
setContentType(String contentType)
Sets the content type of multipart upload file name for this request.
|
void |
setType(RestMultipart.RestMultipartType type) |
RestMultipart |
setValue(String value)
Sets the multipart upload file name for this request.
|
String |
toString() |
public RestMultipart(RestMultipart.RestMultipartType type, String stringValue)
type - Type of the stringValuestringValue - The String content or the file Pathpublic RestMultipart(RestMultipart.RestMultipartType type, String stringValue, String contentType)
public RestMultipart(RestMultipart.RestMultipartType type, String stringValue, String contentType, String charset)
public String getValue()
public RestMultipart setValue(String value)
value - the multipart file namepublic String getContentType()
public RestMultipart setContentType(String contentType)
contentType - the content typepublic String getCharset()
public RestMultipart setCharset(String charset)
charset - the charsetpublic RestMultipart.RestMultipartType getType()
public void setType(RestMultipart.RestMultipartType type)
Copyright © 2016 smartrics. All Rights Reserved.