public enum HttpPartType extends Enum<HttpPartType>
HttpPartSerializerSession.serialize(HttpPartType, HttpPartSchema, Object)
.Enum Constant and Description |
---|
BODY
An HTTP request body
|
FORM_DATA
Deprecated.
Use
FORMDATA . |
FORMDATA
A form-data parameter
|
HEADER
An HTTP request header
|
OTHER
A non-standard field
|
PATH
A URI path variable
|
QUERY
A URI query parameter
|
RESPONSE_BODY
An HTTP response body
|
RESPONSE_HEADER
An HTTP response header
|
RESPONSE_STATUS
An HTTP response status code
|
Modifier and Type | Method and Description |
---|---|
static HttpPartType |
valueOf(String name)
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.
|
public static final HttpPartType BODY
public static final HttpPartType PATH
public static final HttpPartType QUERY
public static final HttpPartType FORMDATA
public static final HttpPartType HEADER
public static final HttpPartType RESPONSE_HEADER
public static final HttpPartType RESPONSE_BODY
public static final HttpPartType RESPONSE_STATUS
public static final HttpPartType OTHER
@Deprecated public static final HttpPartType FORM_DATA
FORMDATA
.public static HttpPartType[] values()
for (HttpPartType c : HttpPartType.values()) System.out.println(c);
public static HttpPartType 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 © 2018 Apache. All rights reserved.