Class FormBodyPart


  • public class FormBodyPart
    extends java.lang.Object
    FormBodyPart class represents a content body that can be used as a part of multipart encoded entities. This class automatically populates the header with standard fields based on the content description of the enclosed body.
    Since:
    4.0
    • Constructor Detail

      • FormBodyPart

        public FormBodyPart​(java.lang.String name,
                            ContentBody body)
    • Method Detail

      • getName

        public java.lang.String getName()
      • getHeader

        public Header getHeader()
      • addField

        public void addField​(java.lang.String name,
                             java.lang.String value)
      • generateContentDisp

        protected void generateContentDisp​(ContentBody body)
      • generateContentType

        protected void generateContentType​(ContentBody body)
      • generateTransferEncoding

        protected void generateTransferEncoding​(ContentBody body)