Package com.adobe.xfa.protocol
Enum Protocol.SectionDataOption
- java.lang.Object
-
- java.lang.Enum<Protocol.SectionDataOption>
-
- com.adobe.xfa.protocol.Protocol.SectionDataOption
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Protocol.SectionDataOption>
- Enclosing interface:
- Protocol
public static enum Protocol.SectionDataOption extends java.lang.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 aSECTION_CONTENT_VALUE
entry, but not both.A multipart MIME section is terminated by a a MultiPartDesc with eSectionDataOption of SECTION_END.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SECTION_CONTENT_FILE
The value field contains the name of a file containing the data content to be sent.SECTION_CONTENT_NAME
The value field contains the name of the original field that corresponds to this section (i.e., thename
parameter of theContent-Disposition
header.SECTION_CONTENT_TYPE
The value field contains theContent-Type
of this section.SECTION_CONTENT_VALUE
The value field contains the data to be sent.SECTION_END
Delimits the end of a multipart MIME section.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Protocol.SectionDataOption
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Protocol.SectionDataOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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., thename
parameter of theContent-Disposition
header.
-
SECTION_CONTENT_TYPE
public static final Protocol.SectionDataOption SECTION_CONTENT_TYPE
The value field contains theContent-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 thefilename
parameter of theContent-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 Detail
-
values
public static Protocol.SectionDataOption[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Protocol.SectionDataOption c : Protocol.SectionDataOption.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Protocol.SectionDataOption valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-