Class MultipartInputImpl.PartImpl

    • Constructor Detail

      • PartImpl

        public PartImpl​(org.apache.james.mime4j.message.BodyPart bodyPart)
    • Method Detail

      • setMediaType

        public void setMediaType​( mediaType)
        Description copied from interface: InputPart
        Change the media type of the body part before you extract it. Useful for specifying a charset.
        Specified by:
        setMediaType in interface InputPart
        mediaType - media type
      • getFileName

        public String getFileName()
        Description copied from interface: InputPart
        Returns the filename parameter of the content disposition of this Entity.
        Specified by:
        getFileName in interface InputPart
        the filename or null if one does not exist
      • getHeaders

        public<String,​String> getHeaders()
        Specified by:
        getHeaders in interface InputPart
        headers of this part
      • getMediaType

        public getMediaType()
        Specified by:
        getMediaType in interface InputPart
        "Content-Type" of this part
      • isContentTypeFromMessage

        public boolean isContentTypeFromMessage()
        Specified by:
        isContentTypeFromMessage in interface InputPart
        true if the Content-Type was resolved from the message, false if it was resolved from the server default