public enum Method extends Enum<Method>
Enum Constant and Description |
---|
CONNECT |
DELETE |
GET |
HEAD |
OPTIONS |
PATCH |
POST |
PUT |
TRACE |
Modifier and Type | Method and Description |
---|---|
boolean |
isIdempotent() |
static boolean |
isIdempotent(String value) |
boolean |
isSafe() |
static boolean |
isSafe(String value) |
boolean |
isSame(String value) |
static Method |
normalizedValueOf(String method)
Returns the Method for a normalized
value of a method name. |
static Method |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Method CONNECT
public static final Method DELETE
public static final Method GET
public static final Method HEAD
public static final Method OPTIONS
public static final Method PATCH
public static final Method POST
public static final Method PUT
public static final Method TRACE
public boolean isIdempotent()
public static boolean isIdempotent(String value)
public boolean isSafe()
public static boolean isSafe(String value)
public boolean isSame(String value)
public static Method normalizedValueOf(String method)
value
of a method name.method
- A method name like "delete"
, "DELETE"
, or any mixed-case variant.public static Method valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Method[] values()
for (Method c : Method.values()) System.out.println(c);