public final class Method extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static Method |
CONNECT |
static Method |
DELETE |
static Method |
GET |
static Method |
HEAD |
static Method |
OPTIONS |
static Method |
PATCH |
static Method |
POST |
static Method |
PUT |
static Method |
TRACE |
Constructor and Description |
---|
Method(String name, boolean idempotent)
Create a new Method instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
idempotent() |
String |
name() |
String |
toString() |
static Method |
valueOf(String name) |
public static final Method GET
public static final Method HEAD
public static final Method OPTIONS
public static final Method TRACE
public static final Method CONNECT
public static final Method PUT
public static final Method POST
public static final Method PATCH
public static final Method DELETE
public Method(String name, boolean idempotent)
name
- Method's name
idempotent
- true if idempotent, false otherwise
public String name()
public boolean idempotent()