public static enum Protocol.SectionDataOption extends Enum<Protocol.SectionDataOption>
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.
| Enum Constant and 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., the
name
parameter of the Content-Disposition header. |
SECTION_CONTENT_TYPE
The value field contains the
Content-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.
|
| Modifier and Type | Method and Description |
|---|---|
static Protocol.SectionDataOption |
valueOf(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.
|
public static final Protocol.SectionDataOption SECTION_CONTENT_NAME
name
parameter of the Content-Disposition header.public static final Protocol.SectionDataOption SECTION_CONTENT_TYPE
Content-Type of this section.public static final Protocol.SectionDataOption SECTION_CONTENT_FILE
filename
parameter of the Content-Disposition header.public static final Protocol.SectionDataOption SECTION_CONTENT_VALUE
public static final Protocol.SectionDataOption SECTION_END
public static Protocol.SectionDataOption[] values()
for (Protocol.SectionDataOption c : Protocol.SectionDataOption.values()) System.out.println(c);
public static Protocol.SectionDataOption valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2010 - 2020 Adobe. All Rights Reserved