public class HttpMethod
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static HttpMethod |
CONNECT |
static HttpMethod |
DELETE |
static HttpMethod |
GET |
static HttpMethod |
HEAD |
static HttpMethod |
OPTIONS |
static HttpMethod |
PATCH |
static HttpMethod |
POST |
static HttpMethod |
PUT |
static HttpMethod |
TRACE |
Constructor and Description |
---|
HttpMethod(java.lang.String name,
boolean hasBody) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Comparison is case-insensitive!
|
static HttpMethod |
getHttp11Method(java.lang.String methodName)
Returns the corresponding HTTP/1.1 method that corresponds to the given name
(case-insensitive) or null if the name does not match any HTTP/1.1 method.
|
java.lang.String |
getName() |
boolean |
hasBody() |
int |
hashCode() |
boolean |
isMethod(java.lang.String method)
Returns true if the given string equals (case-insensitive) this
HttpMethod's name.
|
java.lang.String |
toString() |
public static final HttpMethod GET
public static final HttpMethod POST
public static final HttpMethod PUT
public static final HttpMethod DELETE
public static final HttpMethod HEAD
public static final HttpMethod OPTIONS
public static final HttpMethod CONNECT
public static final HttpMethod TRACE
public static final HttpMethod PATCH
public static HttpMethod getHttp11Method(java.lang.String methodName)
public java.lang.String getName()
public boolean hasBody()
public boolean isMethod(java.lang.String method)
public boolean equals(java.lang.Object obj)
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