Class FormDataContentDisposition


  • public class FormDataContentDisposition
    extends ContentDisposition
    A form-data content disposition header.
    • Field Detail

      • name

        private final java.lang.String name
    • Constructor Detail

      • FormDataContentDisposition

        protected FormDataContentDisposition​(java.lang.String type,
                                             java.lang.String name,
                                             java.lang.String fileName,
                                             java.util.Date creationDate,
                                             java.util.Date modificationDate,
                                             java.util.Date readDate,
                                             long size)
        Constructor for the builder.
        Parameters:
        type - the disposition type. will be "form-data".
        name - the control name.
        fileName - the file name.
        creationDate - the creation date.
        modificationDate - the modification date.
        readDate - the read date.
        size - the size.
        Throws:
        java.lang.IllegalArgumentException - if the type is not equal to "form-data" or the name is null
      • FormDataContentDisposition

        public FormDataContentDisposition​(java.lang.String header)
                                   throws java.text.ParseException
        Throws:
        java.text.ParseException
      • FormDataContentDisposition

        public FormDataContentDisposition​(java.lang.String header,
                                          boolean fileNameFix)
                                   throws java.text.ParseException
        Throws:
        java.text.ParseException
      • FormDataContentDisposition

        public FormDataContentDisposition​(HttpHeaderReader reader,
                                          boolean fileNameFix)
                                   throws java.text.ParseException
        Throws:
        java.text.ParseException