Package com.adobe.xfa.protocol
Enum Protocol.SectionDataOption
- All Implemented Interfaces:
Serializable,Comparable<Protocol.SectionDataOption>,java.lang.constant.Constable
- Enclosing interface:
Protocol
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe value field contains the name of a file containing the data content to be sent.The value field contains the name of the original field that corresponds to this section (i.e., thenameparameter of theContent-Dispositionheader.The value field contains theContent-Typeof this section.The value field contains the data to be sent.Delimits the end of a multipart MIME section. -
Method Summary
Modifier and TypeMethodDescriptionstatic Protocol.SectionDataOptionReturns 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.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SECTION_CONTENT_NAME
The value field contains the name of the original field that corresponds to this section (i.e., thenameparameter of theContent-Dispositionheader. -
SECTION_CONTENT_TYPE
The value field contains theContent-Typeof this section. -
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 thefilenameparameter of theContent-Dispositionheader. -
SECTION_CONTENT_VALUE
The value field contains the data to be sent. -
SECTION_END
Delimits the end of a multipart MIME section. The value field is ignored.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-