XFA4J

com.adobe.xfa.protocol
Enum Protocol.SectionDataOption

java.lang.Object
  extended by java.lang.Enum<Protocol.SectionDataOption>
      extended by 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 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:
Protocol.MultiPartDesc.eSectionDataOption

Enum Constant Summary
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.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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., 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 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 name
java.lang.NullPointerException - if the argument is null

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.