public class RequestMethod extends java.lang.Object implements ValueMatcher<RequestMethod>
Modifier and Type | Field and Description |
---|---|
static RequestMethod |
ANY |
static RequestMethod |
DELETE |
static RequestMethod |
GET |
static RequestMethod |
HEAD |
static RequestMethod |
OPTIONS |
static RequestMethod |
PATCH |
static RequestMethod |
POST |
static RequestMethod |
PUT |
static RequestMethod |
TRACE |
Constructor and Description |
---|
RequestMethod(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static RequestMethod |
fromString(java.lang.String value) |
java.lang.String |
getExpected() |
java.lang.String |
getName() |
int |
hashCode() |
boolean |
isOneOf(RequestMethod... methods) |
MatchResult |
match(RequestMethod method) |
java.lang.String |
toString() |
java.lang.String |
value() |
static RequestMethod[] |
values() |
public static final RequestMethod GET
public static final RequestMethod POST
public static final RequestMethod PUT
public static final RequestMethod DELETE
public static final RequestMethod PATCH
public static final RequestMethod OPTIONS
public static final RequestMethod HEAD
public static final RequestMethod TRACE
public static final RequestMethod ANY
public static RequestMethod fromString(java.lang.String value)
public java.lang.String value()
public boolean isOneOf(RequestMethod... methods)
public MatchResult match(RequestMethod method)
match
in interface ValueMatcher<RequestMethod>
public java.lang.String getName()
getName
in interface ValueMatcher<RequestMethod>
public java.lang.String getExpected()
getExpected
in interface ValueMatcher<RequestMethod>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static RequestMethod[] values()