Class FormDataContentDisposition

java.lang.Object
org.glassfish.jersey.media.multipart.ContentDisposition
org.glassfish.jersey.media.multipart.FormDataContentDisposition

public class FormDataContentDisposition extends ContentDisposition
A form-data content disposition header.
Author:
Paul Sandoz, imran@smartitengineering.com, Marek Potociar
  • Constructor Details

    • FormDataContentDisposition

      protected FormDataContentDisposition(String type, String name, String fileName, Date creationDate, Date modificationDate, 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:
      IllegalArgumentException - if the type is not equal to "form-data" or the name is null
    • FormDataContentDisposition

      public FormDataContentDisposition(String header) throws ParseException
      Throws:
      ParseException
    • FormDataContentDisposition

      public FormDataContentDisposition(String header, boolean fileNameFix) throws ParseException
      Throws:
      ParseException
    • FormDataContentDisposition

      public FormDataContentDisposition(HttpHeaderReader reader, boolean fileNameFix) throws ParseException
      Throws:
      ParseException
  • Method Details