public static enum Request.Method extends java.lang.Enum<Request.Method>
| Enum Constant and Description |
|---|
DELETE
The HTTP
DELETE method. |
GET
The HTTP
GET method. |
HEAD
The HTTP
HEAD method. |
POST
The HTTP
POST method. |
PUT
The HTTP
PUT method. |
| Modifier and Type | Method and Description |
|---|---|
static Request.Method |
fromString(java.lang.String str)
Gets a method from a string.
|
static Request.Method |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Request.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Request.Method HEAD
HEAD method.public static final Request.Method GET
GET method.public static final Request.Method POST
POST method.public static final Request.Method PUT
PUT method.public static final Request.Method DELETE
DELETE method.public static Request.Method[] values()
for (Request.Method c : Request.Method.values()) System.out.println(c);
public static Request.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 nullpublic static Request.Method fromString(java.lang.String str)
str - The string.null if string does not match a valid method.