public static enum Http.ContentType extends Enum<Http.ContentType> implements Http.Header
Http.Header.Util| Enum Constant and Description |
|---|
FORM_URLENCODED |
JSON |
SSH_AUTHKEY |
| Modifier and Type | Method and Description |
|---|---|
String |
getHeaderName() |
String |
getHeaderValue() |
static Http.ContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Http.ContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Http.ContentType JSON
public static final Http.ContentType FORM_URLENCODED
public static final Http.ContentType SSH_AUTHKEY
public static Http.ContentType[] values()
for (Http.ContentType c : Http.ContentType.values()) System.out.println(c);
public static Http.ContentType 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 getHeaderName()
getHeaderName in interface Http.Headerpublic String getHeaderValue()
getHeaderValue in interface Http.HeaderCopyright © 2018. All rights reserved.