com.jalios.rest.client.multipart
Class MultipartParameter

java.lang.Object
  extended by com.jalios.rest.client.multipart.MultipartParameter

public class MultipartParameter
extends 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
static String DEFAULT_CHARSET
           
 
Constructor Summary
MultipartParameter(String key, Object value)
           
 
Method Summary
 String getCharset()
           
 String getKey()
           
 Object getValue()
           
 void setCharset(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
 

Field Detail

DEFAULT_CHARSET

public static final String DEFAULT_CHARSET
See Also:
Constant Field Values
Constructor Detail

MultipartParameter

public MultipartParameter(String key,
                          Object value)
Method Detail

getKey

public String getKey()

getValue

public Object getValue()

getCharset

public String getCharset()
Returns:
gives the charset specified for this String multipart parameter. Default is MultipartParameter.DEFAULT_CHARSET

setCharset

public void setCharset(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-2007 Jalios SA. All Rights Reserved.