Class PartBase

    • Constructor Detail

      • PartBase

        protected PartBase​(String name,
                           String contentType,
                           Charset charset,
                           String contentId,
                           String transferEncoding)
        Constructor.
        Parameters:
        name - The name of the part, or null
        contentType - The content type, or null
        charset - The character encoding, or null
        contentId - The content id, or null
        transferEncoding - The transfer encoding, or null
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Part
        Return the name of this part.
        Specified by:
        getName in interface Part
        Returns:
        The name.
      • getContentType

        public String getContentType()
        Description copied from interface: Part
        Returns the content type of this part.
        Specified by:
        getContentType in interface Part
        Returns:
        the content type, or null to exclude the content type header
      • getCharset

        public Charset getCharset()
        Description copied from interface: Part
        Return the character encoding of this part.
        Specified by:
        getCharset in interface Part
        Returns:
        the character encoding, or null to exclude the character encoding header
      • getTransferEncoding

        public String getTransferEncoding()
        Description copied from interface: Part
        Return the transfer encoding of this part.
        Specified by:
        getTransferEncoding in interface Part
        Returns:
        the transfer encoding, or null to exclude the transfer encoding header
      • getContentId

        public String getContentId()
        Description copied from interface: Part
        Return the content ID of this part.
        Specified by:
        getContentId in interface Part
        Returns:
        the content ID, or null to exclude the content ID header
      • getDispositionType

        public String getDispositionType()
        Description copied from interface: Part
        Gets the disposition-type to be used in Content-Disposition header
        Specified by:
        getDispositionType in interface Part
        Returns:
        the disposition-type
      • setDispositionType

        public void setDispositionType​(String dispositionType)
      • setCustomHeaders

        public void setCustomHeaders​(List<Param> customHeaders)
      • addCustomHeader

        public void addCustomHeader​(String name,
                                    String value)