Package org.apache.juneau.httppart
Enum HttpPartType
- All Implemented Interfaces:
Serializable
,Comparable<HttpPartType>
,java.lang.constant.Constable
Represents possible enum values that can be passed to the
HttpPartSerializerSession.serialize(HttpPartType, HttpPartSchema, Object)
.
See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionGeneric partAn HTTP request bodyA form-data parameterAn HTTP request headerA non-standard fieldA URI path variableA URI query parameterAn HTTP response bodyAn HTTP response headerAn HTTP response status code -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpPartType
Returns the enum constant of this type with the specified name.static HttpPartType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BODY
An HTTP request body -
PATH
A URI path variable -
QUERY
A URI query parameter -
FORMDATA
A form-data parameter -
HEADER
An HTTP request header -
RESPONSE_HEADER
An HTTP response header -
RESPONSE_BODY
An HTTP response body -
RESPONSE_STATUS
An HTTP response status code -
ANY
Generic part -
OTHER
A non-standard field
-
-
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
-