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 methodThe DELETE methodThe GET methodThe HEAD methodThe LINK methodThe MOVE methodThe OPTIONS methodThe PATCH methodThe POST methodThe PUT methodThe TRACE methodThe UNLINK methodThe WRAPPED method -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
OPTIONS
The OPTIONS method -
GET
The GET method -
HEAD
The HEAD method -
POST
The POST method -
PUT
The PUT method -
PATCH
The PATCH method -
COPY
The COPY method -
MOVE
The MOVE method -
DELETE
The DELETE method -
LINK
The LINK method -
UNLINK
The UNLINK method -
TRACE
The TRACE method -
WRAPPED
The WRAPPED method -
CONNECT
The CONNECT method
-
-
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
-