public enum HttpMessageHeaderField extends Enum<HttpMessageHeaderField>
| Enum Constant and Description |
|---|
CONTENTTYPE
The Content-Type header field defines
MediaType of the request body. |
| Modifier and Type | Method and Description |
|---|---|
String |
getValue()
Gets text value of http message header field.
|
static HttpMessageHeaderField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMessageHeaderField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMessageHeaderField CONTENTTYPE
MediaType of the request body.
Used in POST and PUT requests and responses.
public static HttpMessageHeaderField[] values()
for (HttpMessageHeaderField c : HttpMessageHeaderField.values()) System.out.println(c);
public static HttpMessageHeaderField 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 nullpublic String getValue()
Copyright © 2014. All Rights Reserved.