Class HttpMethod
java.lang.Object
io.vertx.core.http.HttpMethod
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HttpMethodThe RFC 3744ACLmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253BASELINE_CONTROLmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253CHECKINmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253CHECKOUTmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2616CONNECTmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2518/4918COPYmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2616DELETEmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2616GETmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2616HEADmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253LABELmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2518/4918LOCKmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253MERGEmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253MKACTIVITYmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 4791MKCALENDARmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2518/4918MKCOLmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253MKWORKSPACEmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2518/4918MOVEmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2616OPTIONSmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3648ORDERPATCHmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 5789PATCHmethod, this instance is interned and uniquely used.static final HttpMethodThe {RFC 2616 @code POST} method, this instance is interned and uniquely used.static final HttpMethodThe RFC 2518/4918PROPFINDmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2518/4918PROPPATCHmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2616PUTmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253REPORTmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 5323SEARCHmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2616TRACEmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253UNCHECKOUTmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 2518/4918UNLOCKmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253UPDATEmethod, this instance is interned and uniquely used.static final HttpMethodThe RFC 3253VERSION_CONTROLmethod, this instance is interned and uniquely used. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic HttpMethodfromNetty(HttpMethod method) Lookup theHttpMethodvalue for the specifiednettyMethod.inthashCode()name()toJson()toNetty()toString()static HttpMethodLookup theHttpMethodvalue for the specifiedvalue.static List<HttpMethod> values()
-
Field Details
-
OPTIONS
The RFC 2616OPTIONSmethod, this instance is interned and uniquely used. -
GET
The RFC 2616GETmethod, this instance is interned and uniquely used. -
HEAD
The RFC 2616HEADmethod, this instance is interned and uniquely used. -
POST
The {RFC 2616 @code POST} method, this instance is interned and uniquely used. -
PUT
The RFC 2616PUTmethod, this instance is interned and uniquely used. -
DELETE
The RFC 2616DELETEmethod, this instance is interned and uniquely used. -
TRACE
The RFC 2616TRACEmethod, this instance is interned and uniquely used. -
CONNECT
The RFC 2616CONNECTmethod, this instance is interned and uniquely used. -
PATCH
The RFC 5789PATCHmethod, this instance is interned and uniquely used. -
PROPFIND
The RFC 2518/4918PROPFINDmethod, this instance is interned and uniquely used. -
PROPPATCH
The RFC 2518/4918PROPPATCHmethod, this instance is interned and uniquely used. -
MKCOL
The RFC 2518/4918MKCOLmethod, this instance is interned and uniquely used. -
COPY
The RFC 2518/4918COPYmethod, this instance is interned and uniquely used. -
MOVE
The RFC 2518/4918MOVEmethod, this instance is interned and uniquely used. -
LOCK
The RFC 2518/4918LOCKmethod, this instance is interned and uniquely used. -
UNLOCK
The RFC 2518/4918UNLOCKmethod, this instance is interned and uniquely used. -
MKCALENDAR
The RFC 4791MKCALENDARmethod, this instance is interned and uniquely used. -
VERSION_CONTROL
The RFC 3253VERSION_CONTROLmethod, this instance is interned and uniquely used. -
REPORT
The RFC 3253REPORTmethod, this instance is interned and uniquely used. -
CHECKOUT
The RFC 3253CHECKOUTmethod, this instance is interned and uniquely used. -
CHECKIN
The RFC 3253CHECKINmethod, this instance is interned and uniquely used. -
UNCHECKOUT
The RFC 3253UNCHECKOUTmethod, this instance is interned and uniquely used. -
MKWORKSPACE
The RFC 3253MKWORKSPACEmethod, this instance is interned and uniquely used. -
UPDATE
The RFC 3253UPDATEmethod, this instance is interned and uniquely used. -
LABEL
The RFC 3253LABELmethod, this instance is interned and uniquely used. -
MERGE
The RFC 3253MERGEmethod, this instance is interned and uniquely used. -
BASELINE_CONTROL
The RFC 3253BASELINE_CONTROLmethod, this instance is interned and uniquely used. -
MKACTIVITY
The RFC 3253MKACTIVITYmethod, this instance is interned and uniquely used. -
ORDERPATCH
The RFC 3648ORDERPATCHmethod, this instance is interned and uniquely used. -
ACL
The RFC 3744ACLmethod, this instance is interned and uniquely used. -
SEARCH
The RFC 5323SEARCHmethod, this instance is interned and uniquely used.
-
-
Constructor Details
-
HttpMethod
-
-
Method Details
-
values
- Returns:
- an un-modifiable list of known HTTP methods
-
fromNetty
Lookup theHttpMethodvalue for the specifiednettyMethod.
The predefined method constantsGET,POST,PUT,HEAD,OPTIONS,DELETE,TRACE,CONNECTandPATCHare interned and will be returned when case sensitively matching their string value (i.e"GET", etc...)
Otherwise a new instance is returned.- Parameters:
method- the netty method- Returns:
- the
HttpMethodinstance for the specified nettymethod
-
valueOf
Lookup theHttpMethodvalue for the specifiedvalue.
The predefined method constantsGET,POST,PUT,HEAD,OPTIONS,DELETE,TRACE,CONNECTandPATCHare interned and will be returned when case sensitively matching their string value (i.e"GET", etc...)
Otherwise a new instance is returned.- Parameters:
value- the value- Returns:
- the
HttpMethodinstance for the specified stringvalue - Throws:
IllegalArgumentException- when the value is incorrect, the value is empty or contains an invalid char
-
toJson
-
name
- Returns:
- the method name
-
toString
-
hashCode
-
equals
-
toNetty
- Returns:
- the wrapped Netty method instance
-