Package org.apache.mina.http.api
Enum HttpMethod
- All Implemented Interfaces:
Serializable,Comparable<HttpMethod>
The HTTP method, one of GET, HEAD, POST, PUT, DELETE, OPTIONS, TRACE, CONNECT
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe CONNECT methodThe COPY method, RFC 4918The DELETE methodThe GET methodThe HEAD methodThe LINK methodThe LOCK method, RFC 5789The MOVE method, RFC 5789The OPTIONS methodThe PATCH method, RFC 5789The POST methodThe PUT methodThe TRACE methodUnknown methodThe UNLINK methodThe UNLOCK method, RFC 5789The WRAPPED method ??? -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic HttpMethodReturns the enum constant of this type with the specified name.static HttpMethod[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GET
The GET method -
HEAD
The HEAD method -
POST
The POST method -
CONNECT
The CONNECT method -
DELETE
The DELETE method -
OPTIONS
The OPTIONS method -
PUT
The PUT method -
TRACE
The TRACE method -
LINK
The LINK method -
UNLINK
The UNLINK method -
PATCH
The PATCH method, RFC 5789 -
COPY
The COPY method, RFC 4918 -
MOVE
The MOVE method, RFC 5789 -
LOCK
The LOCK method, RFC 5789 -
UNLOCK
The UNLOCK method, RFC 5789 -
WRAPPED
The WRAPPED method ??? -
UNKNOWN
Unknown method
-
-
Field Details
-
name
String name
-
-
Constructor Details
-
HttpMethod
private HttpMethod()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
setName
-