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