Class 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • MultipartParameter

        public MultipartParameter​(java.lang.String key,
                                  java.lang.Object value)
    • 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