Class MaximalBodyDescriptor

    • Method Detail

      • getBoundary

        public String getBoundary()
        Description copied from interface: BodyDescriptor
        Returns the body descriptors boundary.
        Specified by:
        getBoundary in interface BodyDescriptor
        Returns:
        Boundary string, if known, or null. The latter may be the case, in particular, if the body is no multipart entity.
      • getCharset

        public String getCharset()
        Description copied from interface: ContentDescriptor

        The body descriptors character set, defaulted appropriately for the MIME type.

        For TEXT types, this will be defaulted to us-ascii. For other types, when the charset parameter is missing this property will be null.

        Specified by:
        getCharset in interface ContentDescriptor
        Returns:
        Character set, which has been parsed from the content-type definition. Not null for TEXT types, when unset will be set to default us-ascii. For other types, when unset, null will be returned.
      • getContentTypeParameters

        public Map<String,​String> getContentTypeParameters()
      • getTransferEncoding

        public String getTransferEncoding()
        Description copied from interface: ContentDescriptor
        Returns the body descriptors transfer encoding.
        Specified by:
        getTransferEncoding in interface ContentDescriptor
        Returns:
        The transfer encoding. Must not be null, but "7bit", if no transfer-encoding was specified.
      • getContentLength

        public long getContentLength()
        Description copied from interface: ContentDescriptor
        Returns the body descriptors content-length.
        Specified by:
        getContentLength in interface ContentDescriptor
        Returns:
        Content length, if known, or -1, to indicate the absence of a content-length header.
      • getMimeMajorVersion

        public int getMimeMajorVersion()
        Gets the MIME major version as specified by the MIME-Version header. Defaults to one.
        Returns:
        positive integer
      • getMimeMinorVersion

        public int getMimeMinorVersion()
        Gets the MIME minor version as specified by the MIME-Version header. Defaults to zero.
        Returns:
        positive integer
      • getContentDescription

        public String getContentDescription()
        Gets the value of the RFC Content-Description header.
        Returns:
        value of the Content-Description when present, null otherwise
      • getContentId

        public String getContentId()
        Gets the value of the RFC Content-ID header.
        Returns:
        value of the Content-ID when present, null otherwise
      • getContentDispositionType

        public String getContentDispositionType()
        Gets the disposition type of the content-disposition field. The value is case insensitive and will be converted to lower case. See RFC2183.
        Returns:
        content disposition type, or null when this has not been set
      • getContentDispositionParameters

        public Map<String,​String> getContentDispositionParameters()
        Gets the parameters of the content-disposition field. See RFC2183.
        Returns:
        parameter value strings indexed by parameter name strings, not null
      • getContentDispositionFilename

        public String getContentDispositionFilename()
        Gets the filename parameter value of the content-disposition field. See RFC2183.
        Returns:
        filename parameter value, or null when it is not present
      • getContentDispositionModificationDate

        public Date getContentDispositionModificationDate()
        Gets the modification-date parameter value of the content-disposition field. See RFC2183.
        Returns:
        modification-date parameter value, or null when this is not present
      • getContentDispositionCreationDate

        public Date getContentDispositionCreationDate()
        Gets the creation-date parameter value of the content-disposition field. See RFC2183.
        Returns:
        creation-date parameter value, or null when this is not present
      • getContentDispositionReadDate

        public Date getContentDispositionReadDate()
        Gets the read-date parameter value of the content-disposition field. See RFC2183.
        Returns:
        read-date parameter value, or null when this is not present
      • getContentDispositionSize

        public long getContentDispositionSize()
        Gets the size parameter value of the content-disposition field. See RFC2183.
        Returns:
        size parameter value, or -1 if this size has not been set
      • getContentLanguage

        public List<String> getContentLanguage()
        Get the content-language header values. Each applicable language tag will be returned in order. See RFC4646 http://tools.ietf.org/html/rfc4646.
        Returns:
        list of language tag Strings, or null if no header exists
      • getContentLocation

        public String getContentLocation()
        Get the content-location header value. See RFC2557
        Returns:
        the URL content-location or null if no header exists
      • getContentMD5Raw

        public String getContentMD5Raw()
        Gets the raw, Base64 encoded value of the Content-MD5 field. See RFC1864.
        Returns:
        raw encoded content-md5 or null if no header exists