public enum HttpMethodEnum extends Enum<HttpMethodEnum>
| 枚举常量和说明 |
|---|
DELETE
DELETE method, normally used for deletion
|
GET
GET method, normally used for query
|
HEAD
HEAD method, normally used to query response headers
|
OPTIONS
OPTIONS method, normally used for preflight
|
POST
POST method, normally used for adding
|
PUT
PUT method, normally used for adding and modification
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getOperationType() |
static HttpMethodEnum |
getValueFromStringCode(String operationType) |
static HttpMethodEnum |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpMethodEnum[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HttpMethodEnum GET
public static final HttpMethodEnum PUT
public static final HttpMethodEnum POST
public static final HttpMethodEnum DELETE
public static final HttpMethodEnum HEAD
public static final HttpMethodEnum OPTIONS
public static HttpMethodEnum[] values()
for (HttpMethodEnum c : HttpMethodEnum.values()) System.out.println(c);
public static HttpMethodEnum valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getOperationType()
public static HttpMethodEnum getValueFromStringCode(String operationType)
Copyright © 2021. All rights reserved.