public static enum HttpClient.HttpMethod extends java.lang.Enum<HttpClient.HttpMethod>
Enum Constant and Description |
---|
DELETE |
GET |
HEAD |
OPTIONS |
POST |
PUT |
TRACE |
Modifier and Type | Method and Description |
---|---|
static HttpClient.HttpMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpClient.HttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpClient.HttpMethod GET
public static final HttpClient.HttpMethod PUT
public static final HttpClient.HttpMethod POST
public static final HttpClient.HttpMethod DELETE
public static final HttpClient.HttpMethod HEAD
public static final HttpClient.HttpMethod OPTIONS
public static final HttpClient.HttpMethod TRACE
public static HttpClient.HttpMethod[] values()
for (HttpClient.HttpMethod c : HttpClient.HttpMethod.values()) System.out.println(c);
public static HttpClient.HttpMethod valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null