Enum Protocol.SectionDataOption

java.lang.Object
java.lang.Enum<Protocol.SectionDataOption>
com.adobe.xfa.protocol.Protocol.SectionDataOption
All Implemented Interfaces:
Serializable, Comparable<Protocol.SectionDataOption>, java.lang.constant.Constable
Enclosing interface:
Protocol

public static enum Protocol.SectionDataOption extends Enum<Protocol.SectionDataOption>
Describes an entry in a multipart MIME section in a multipart/form-data media type. Multipart MIME sections are described by a sequence of MultiPartDesc entries, and the value of each entry is interpreted by a eSectionDataOption as described by this enumeration.

A multipart MIME section should contain either a SECTION_CONTENT_FILE or a SECTION_CONTENT_VALUE entry, but not both.

A multipart MIME section is terminated by a a MultiPartDesc with eSectionDataOption of SECTION_END.

See Also:
  • Enum Constant Details

    • SECTION_CONTENT_NAME

      public static final Protocol.SectionDataOption SECTION_CONTENT_NAME
      The value field contains the name of the original field that corresponds to this section (i.e., the name parameter of the Content-Disposition header.
    • SECTION_CONTENT_TYPE

      public static final Protocol.SectionDataOption SECTION_CONTENT_TYPE
      The value field contains the Content-Type of this section.
    • SECTION_CONTENT_FILE

      public static final Protocol.SectionDataOption SECTION_CONTENT_FILE
      The value field contains the name of a file containing the data content to be sent. The file name will also be sent in the filename parameter of the Content-Disposition header.
    • SECTION_CONTENT_VALUE

      public static final Protocol.SectionDataOption SECTION_CONTENT_VALUE
      The value field contains the data to be sent.
    • SECTION_END

      public static final Protocol.SectionDataOption SECTION_END
      Delimits the end of a multipart MIME section. The value field is ignored.
  • Method Details

    • values

      public static Protocol.SectionDataOption[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Protocol.SectionDataOption valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null