Package cool.scx.common.standard
Enum Class HttpMethod
- All Implemented Interfaces:
Serializable,Comparable<HttpMethod>,Constable
HttpMethod
- Version:
- 0.3.6
- Author:
- scx567888
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCONNECT 方法建立一个到由目标资源标识的服务器的隧道。DELETE 方法删除指定的资源。GET 方法请求一个指定资源的表示形式,使用 GET 的请求应该只被用于获取数据。HEAD 方法请求一个与 GET 请求的响应相同的响应,但没有响应体。OPTIONS 方法用于描述目标资源的通信选项。PATCH 方法用于对资源应用部分修改。POST 方法用于将实体提交到指定的资源,通常导致在服务器上的状态变化或副作用。PUT 方法用有效载荷请求替换目标资源的所有当前表示。TRACE 方法沿着到目标资源的路径执行一个消息环回测试。 -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpMethodReturns the enum constant of this class with the specified name.static HttpMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONNECT
CONNECT 方法建立一个到由目标资源标识的服务器的隧道。 -
DELETE
DELETE 方法删除指定的资源。 -
GET
GET 方法请求一个指定资源的表示形式,使用 GET 的请求应该只被用于获取数据。 -
HEAD
HEAD 方法请求一个与 GET 请求的响应相同的响应,但没有响应体。 -
OPTIONS
OPTIONS 方法用于描述目标资源的通信选项。 -
PATCH
PATCH 方法用于对资源应用部分修改。 -
POST
POST 方法用于将实体提交到指定的资源,通常导致在服务器上的状态变化或副作用。 -
PUT
PUT 方法用有效载荷请求替换目标资源的所有当前表示。 -
TRACE
TRACE 方法沿着到目标资源的路径执行一个消息环回测试。
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-