Class AbstractContentBody

    • Method Detail

      • getContentType

        public ContentType getContentType()
        Since:
        4.3
      • 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.