Class HttpMultipart


  • @Deprecated
    public class HttpMultipart
    extends AbstractMultipartForm
    Deprecated.
    HttpMultipart represents a collection of MIME multipart encoded content bodies. This class is capable of operating either in the strict (RFC 822, RFC 2045, RFC 2046 compliant) or the browser compatible modes.
    Since:
    4.0
    • Field Detail

      • parts

        private final java.util.List<FormBodyPart> parts
        Deprecated.
      • subType

        private final java.lang.String subType
        Deprecated.
    • Constructor Detail

      • HttpMultipart

        public HttpMultipart​(java.lang.String subType,
                             java.nio.charset.Charset charset,
                             java.lang.String boundary,
                             HttpMultipartMode mode)
        Deprecated.
        Creates an instance with the specified settings.
        Parameters:
        subType - MIME subtype - must not be null
        charset - the character set to use. May be null, in which case MIME.DEFAULT_CHARSET - i.e. US-ASCII - is used.
        boundary - to use - must not be null
        mode - the mode to use
        Throws:
        java.lang.IllegalArgumentException - if charset is null or boundary is null
      • HttpMultipart

        public HttpMultipart​(java.lang.String subType,
                             java.nio.charset.Charset charset,
                             java.lang.String boundary)
        Deprecated.
        Creates an instance with the specified settings. Mode is set to HttpMultipartMode.STRICT
        Parameters:
        subType - MIME subtype - must not be null
        charset - the character set to use. May be null, in which case MIME.DEFAULT_CHARSET - i.e. US-ASCII - is used.
        boundary - to use - must not be null
        Throws:
        java.lang.IllegalArgumentException - if charset is null or boundary is null
      • HttpMultipart

        public HttpMultipart​(java.lang.String subType,
                             java.lang.String boundary)
        Deprecated.
    • Method Detail

      • addBodyPart

        public void addBodyPart​(FormBodyPart part)
        Deprecated.
      • getSubType

        public java.lang.String getSubType()
        Deprecated.
      • getCharset

        public java.nio.charset.Charset getCharset()
        Deprecated.
      • getBoundary

        public java.lang.String getBoundary()
        Deprecated.