- All Implemented Interfaces:
Serializable
,Comparable<BodyType>
,Constable
The type of HTTP request body
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionkey-value pairs joined by ampersands, with the values encoded using URL encoding, also known as percent encoding.Splits up the content into partitions separated by a boundary value that is specified by sender.Indicates there is no bodya body exists but does not correspond to any known encoding -
Method Summary
-
Enum Constant Details
-
UNRECOGNIZED
a body exists but does not correspond to any known encoding -
NONE
Indicates there is no body -
FORM_URL_ENCODED
key-value pairs joined by ampersands, with the values encoded using URL encoding, also known as percent encoding. Look up application/x-www-form-urlencoded -
MULTIPART
Splits up the content into partitions separated by a boundary value that is specified by sender. Look up multipart/form-data
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-