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
Method Summary |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_CHARSET
public static final java.lang.String DEFAULT_CHARSET
- See Also:
- Constant Field Values
MultipartParameter
public MultipartParameter(java.lang.String key,
java.lang.Object value)
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
Copyright © 2001-2010 Jalios SA. All Rights Reserved.