public static enum HttpRequest.Method extends java.lang.Enum<HttpRequest.Method>
Enum Constant and Description |
---|
CONNECT
The CONNECT method.
|
DELETE
The DELETE method.
|
GET
The GET method.
|
HEAD
The HEAD method.
|
OPTIONS
The OPTIONS method.
|
POST
The POST method.
|
PUT
The PUT method.
|
TRACE
The TRACE method.
|
Modifier and Type | Method and Description |
---|---|
static HttpRequest.Method |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpRequest.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpRequest.Method OPTIONS
public static final HttpRequest.Method GET
public static final HttpRequest.Method HEAD
public static final HttpRequest.Method POST
public static final HttpRequest.Method PUT
public static final HttpRequest.Method DELETE
public static final HttpRequest.Method TRACE
public static final HttpRequest.Method CONNECT
public static HttpRequest.Method[] values()
for (HttpRequest.Method c : HttpRequest.Method.values()) System.out.println(c);
public static HttpRequest.Method 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