public class HttpMethod extends Object
Modifier and Type | Field and Description |
---|---|
static HttpMethod |
ACL
The RFC 3744
ACL method, this instance is interned and uniquely used. |
static HttpMethod |
BASELINE_CONTROL
The RFC 3253
BASELINE_CONTROL method, this instance is interned and uniquely used. |
static HttpMethod |
CHECKIN
The RFC 3253
CHECKIN method, this instance is interned and uniquely used. |
static HttpMethod |
CHECKOUT
The RFC 3253
CHECKOUT method, this instance is interned and uniquely used. |
static HttpMethod |
CONNECT
The RFC 2616
CONNECT method, this instance is interned and uniquely used. |
static HttpMethod |
COPY
The RFC 2518/4918
COPY method, this instance is interned and uniquely used. |
static HttpMethod |
DELETE
The RFC 2616
DELETE method, this instance is interned and uniquely used. |
static HttpMethod |
GET
The RFC 2616
GET method, this instance is interned and uniquely used. |
static HttpMethod |
HEAD
The RFC 2616
HEAD method, this instance is interned and uniquely used. |
static HttpMethod |
LABEL
The RFC 3253
LABEL method, this instance is interned and uniquely used. |
static HttpMethod |
LOCK
The RFC 2518/4918
LOCK method, this instance is interned and uniquely used. |
static HttpMethod |
MERGE
The RFC 3253
MERGE method, this instance is interned and uniquely used. |
static HttpMethod |
MKACTIVITY
The RFC 3253
MKACTIVITY method, this instance is interned and uniquely used. |
static HttpMethod |
MKCALENDAR
The RFC 4791
MKCALENDAR method, this instance is interned and uniquely used. |
static HttpMethod |
MKCOL
The RFC 2518/4918
MKCOL method, this instance is interned and uniquely used. |
static HttpMethod |
MKWORKSPACE
The RFC 3253
MKWORKSPACE method, this instance is interned and uniquely used. |
static HttpMethod |
MOVE
The RFC 2518/4918
MOVE method, this instance is interned and uniquely used. |
static HttpMethod |
OPTIONS
The RFC 2616
OPTIONS method, this instance is interned and uniquely used. |
static HttpMethod |
ORDERPATCH
The RFC 3648
ORDERPATCH method, this instance is interned and uniquely used. |
static HttpMethod |
PATCH
The RFC 5789
PATCH method, this instance is interned and uniquely used. |
static HttpMethod |
POST
The {RFC 2616 @code POST} method, this instance is interned and uniquely used.
|
static HttpMethod |
PROPFIND
The RFC 2518/4918
PROPFIND method, this instance is interned and uniquely used. |
static HttpMethod |
PROPPATCH
The RFC 2518/4918
PROPPATCH method, this instance is interned and uniquely used. |
static HttpMethod |
PUT
The RFC 2616
PUT method, this instance is interned and uniquely used. |
static HttpMethod |
REPORT
The RFC 3253
REPORT method, this instance is interned and uniquely used. |
static HttpMethod |
SEARCH
The RFC 5323
SEARCH method, this instance is interned and uniquely used. |
static HttpMethod |
TRACE
The RFC 2616
TRACE method, this instance is interned and uniquely used. |
static HttpMethod |
UNCHECKOUT
The RFC 3253
UNCHECKOUT method, this instance is interned and uniquely used. |
static HttpMethod |
UNLOCK
The RFC 2518/4918
UNLOCK method, this instance is interned and uniquely used. |
static HttpMethod |
UPDATE
The RFC 3253
UPDATE method, this instance is interned and uniquely used. |
static HttpMethod |
VERSION_CONTROL
The RFC 3253
VERSION_CONTROL method, this instance is interned and uniquely used. |
Constructor and Description |
---|
HttpMethod(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static HttpMethod |
fromNetty(HttpMethod method)
Lookup the
HttpMethod value for the specified nettyMethod . |
int |
hashCode() |
String |
name() |
JsonObject |
toJson() |
HttpMethod |
toNetty() |
String |
toString() |
static HttpMethod |
valueOf(String value)
Lookup the
HttpMethod value for the specified value . |
static List<HttpMethod> |
values() |
public static final HttpMethod OPTIONS
OPTIONS
method, this instance is interned and uniquely used.public static final HttpMethod GET
GET
method, this instance is interned and uniquely used.public static final HttpMethod HEAD
HEAD
method, this instance is interned and uniquely used.public static final HttpMethod POST
public static final HttpMethod PUT
PUT
method, this instance is interned and uniquely used.public static final HttpMethod DELETE
DELETE
method, this instance is interned and uniquely used.public static final HttpMethod TRACE
TRACE
method, this instance is interned and uniquely used.public static final HttpMethod CONNECT
CONNECT
method, this instance is interned and uniquely used.public static final HttpMethod PATCH
PATCH
method, this instance is interned and uniquely used.public static final HttpMethod PROPFIND
PROPFIND
method, this instance is interned and uniquely used.public static final HttpMethod PROPPATCH
PROPPATCH
method, this instance is interned and uniquely used.public static final HttpMethod MKCOL
MKCOL
method, this instance is interned and uniquely used.public static final HttpMethod COPY
COPY
method, this instance is interned and uniquely used.public static final HttpMethod MOVE
MOVE
method, this instance is interned and uniquely used.public static final HttpMethod LOCK
LOCK
method, this instance is interned and uniquely used.public static final HttpMethod UNLOCK
UNLOCK
method, this instance is interned and uniquely used.public static final HttpMethod MKCALENDAR
MKCALENDAR
method, this instance is interned and uniquely used.public static final HttpMethod VERSION_CONTROL
VERSION_CONTROL
method, this instance is interned and uniquely used.public static final HttpMethod REPORT
REPORT
method, this instance is interned and uniquely used.public static final HttpMethod CHECKOUT
CHECKOUT
method, this instance is interned and uniquely used.public static final HttpMethod CHECKIN
CHECKIN
method, this instance is interned and uniquely used.public static final HttpMethod UNCHECKOUT
UNCHECKOUT
method, this instance is interned and uniquely used.public static final HttpMethod MKWORKSPACE
MKWORKSPACE
method, this instance is interned and uniquely used.public static final HttpMethod UPDATE
UPDATE
method, this instance is interned and uniquely used.public static final HttpMethod LABEL
LABEL
method, this instance is interned and uniquely used.public static final HttpMethod MERGE
MERGE
method, this instance is interned and uniquely used.public static final HttpMethod BASELINE_CONTROL
BASELINE_CONTROL
method, this instance is interned and uniquely used.public static final HttpMethod MKACTIVITY
MKACTIVITY
method, this instance is interned and uniquely used.public static final HttpMethod ORDERPATCH
ORDERPATCH
method, this instance is interned and uniquely used.public static final HttpMethod ACL
ACL
method, this instance is interned and uniquely used.public static final HttpMethod SEARCH
SEARCH
method, this instance is interned and uniquely used.public HttpMethod(String name)
public static List<HttpMethod> values()
public static HttpMethod fromNetty(HttpMethod method)
HttpMethod
value for the specified nettyMethod
.
GET
, POST
, PUT
, HEAD
, OPTIONS
,
DELETE
, TRACE
, CONNECT
and PATCH
are interned and will be returned
when case sensitively matching their string value (i.e "GET"
, etc...)
method
- the netty methodHttpMethod
instance for the specified netty method
public static HttpMethod valueOf(String value)
HttpMethod
value for the specified value
.
GET
, POST
, PUT
, HEAD
, OPTIONS
,
DELETE
, TRACE
, CONNECT
and PATCH
are interned and will be returned
when case sensitively matching their string value (i.e "GET"
, etc...)
value
- the valueHttpMethod
instance for the specified string value
IllegalArgumentException
- when the value is incorrect, the value is empty or contains an invalid charpublic JsonObject toJson()
public String name()
public String toString()
public HttpMethod toNetty()
Copyright © 2024 Eclipse. All rights reserved.