public static enum HttpRequest.Method extends java.lang.Enum<HttpRequest.Method>
Enum Constant and Description |
---|
CONNECT |
DELETE |
GET |
HEAD |
OPTIONS |
PATCH |
POST |
PUT |
TRACE |
UNSUPPORTED |
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 final HttpRequest.Method PATCH
public static final HttpRequest.Method UNSUPPORTED
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