public enum ForestRequestType extends Enum<ForestRequestType>
包括: GET POST PUT PATCH HEAD OPTIONS DELETE TRACE
Enum Constant and Description |
---|
DELETE
DELETE请求方法
|
GET
GET请求方法
|
HEAD
HEAD请求方法
|
OPTIONS
OPTIONS请求方法
|
PATCH
PATCH请求方法
|
POST
POST请求方法
|
PUT
PUT请求方法
|
TRACE
TREACE请求方法
|
Modifier and Type | Method and Description |
---|---|
static ForestRequestType |
findType(String name)
根据请求类型名称(HTTP方法名称)找到对应的Forest请求类型枚举
|
int |
getDefaultParamTarget() |
String |
getName() |
boolean |
match(String name)
判断本Forest请求类型枚举是否匹配传入的名称
|
static ForestRequestType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ForestRequestType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ForestRequestType GET
public static final ForestRequestType POST
public static final ForestRequestType PUT
public static final ForestRequestType PATCH
public static final ForestRequestType HEAD
public static final ForestRequestType OPTIONS
public static final ForestRequestType DELETE
public static final ForestRequestType TRACE
public static ForestRequestType[] values()
for (ForestRequestType c : ForestRequestType.values()) System.out.println(c);
public static ForestRequestType 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 getName()
public int getDefaultParamTarget()
public boolean match(String name)
name
- 请求类型名称(HTTP方法名称)字符串true
: 匹配; false
: 不匹配public static ForestRequestType findType(String name)
name
- 请求类型名称(HTTP方法名称)ForestRequestType
枚举实例Copyright © 2020. All rights reserved.