public class HttpMethod extends java.lang.Object implements java.lang.Comparable<HttpMethod>
| 限定符和类型 | 字段和说明 | 
|---|---|
static HttpMethod | 
CONNECT
This specification reserves the getMethod name CONNECT for use with a proxy that can dynamically
 switch to being a tunnel 
 | 
static HttpMethod | 
DELETE
The DELETE getMethod requests that the origin server delete the resource identified by the
 Request-URI. 
 | 
static HttpMethod | 
GET
The GET getMethod means retrieve whatever information (in the form of an entity) is identified
 by the Request-URI. 
 | 
static HttpMethod | 
HEAD
The HEAD getMethod is identical to GET except that the server MUST NOT return a message-body
 in the response. 
 | 
static HttpMethod | 
OPTIONS
The OPTIONS getMethod represents a request for information about the communication options
 available on the request/response chain identified by the Request-URI. 
 | 
static HttpMethod | 
PATCH
The PATCH getMethod requests that a set of changes described in the
 request entity be applied to the resource identified by the Request-URI. 
 | 
static HttpMethod | 
POST
The POST getMethod is used to request that the origin server accept the entity enclosed in the
 request as a new subordinate of the resource identified by the Request-URI in the
 Request-Line. 
 | 
static HttpMethod | 
PUT
The PUT getMethod requests that the enclosed entity be stored under the supplied Request-URI. 
 | 
static HttpMethod | 
TRACE
The TRACE getMethod is used to invoke a remote, application-layer loop- back of the request
 message. 
 | 
| 构造器和说明 | 
|---|
HttpMethod(java.lang.String name)
Creates a new HTTP getMethod with the specified name. 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
int | 
compareTo(HttpMethod o)  | 
boolean | 
equals(java.lang.Object o)  | 
int | 
hashCode()  | 
java.lang.String | 
name()
Returns the name of this getMethod. 
 | 
java.lang.String | 
toString()  | 
static HttpMethod | 
valueOf(java.lang.String name)
Returns the  
HttpMethod represented by the specified name. | 
public static final HttpMethod OPTIONS
public static final HttpMethod GET
public static final HttpMethod HEAD
public static final HttpMethod POST
public static final HttpMethod PUT
public static final HttpMethod PATCH
public static final HttpMethod DELETE
public static final HttpMethod TRACE
public static final HttpMethod CONNECT
public static HttpMethod valueOf(java.lang.String name)
HttpMethod represented by the specified name.
 If the specified name is a standard HTTP getMethod name, a cached instance
 will be returned.  Otherwise, a new instance will be returned.public java.lang.String name()
public int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.Objectpublic int compareTo(HttpMethod o)
compareTo 在接口中 java.lang.Comparable<HttpMethod>