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