public enum HttpMethodEnum extends Enum<HttpMethodEnum>
Enum Constant and Description |
---|
DELETE
DELETE方法,一般用于删除
|
GET
GET方法,一般用于查询
|
HEAD
HEAD方法,一般用于查询响应头
|
OPTIONS
OPTIONS方法,一般用于预请求
|
POST
POST方法,一般用于新增
|
PUT
PUT方法,一般用于新增、修改
|
Modifier and Type | Method and Description |
---|---|
String |
getOperationType() |
static HttpMethodEnum |
getValueFromStringCode(String operationType) |
static HttpMethodEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethodEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getOperationType()
public static HttpMethodEnum getValueFromStringCode(String operationType)
Copyright © 2021. All rights reserved.