Package com.jalios.rest.client.multipart
Class MultipartParameter
- java.lang.Object
-
- com.jalios.rest.client.multipart.MultipartParameter
-
public class MultipartParameter extends java.lang.Object
Represents a parameter for a Multipart Request. The value may be a String or a File.- Since:
- jcms-6.1.0
- Author:
- dissert
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_CHARSET
-
Constructor Summary
Constructors Constructor Description MultipartParameter(java.lang.String key, java.lang.Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCharset()
java.lang.String
getKey()
java.lang.Object
getValue()
void
setCharset(java.lang.String charset)
Override default charset for String multipart parameter
-
-
-
Field Detail
-
DEFAULT_CHARSET
public static final java.lang.String DEFAULT_CHARSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
public java.lang.String getKey()
-
getValue
public java.lang.Object getValue()
-
getCharset
public java.lang.String getCharset()
- Returns:
- gives the charset specified for this String multipart parameter. Default is MultipartParameter.DEFAULT_CHARSET
-
setCharset
public void setCharset(java.lang.String charset)
Override default charset for String multipart parameter- Parameters:
charset
- the specific charset. Must be compliant with RFC 2045 @see RFC 2045
-
-