public enum RequestMethod extends Enum<RequestMethod>
| 限定符和类型 | 方法和说明 |
|---|---|
static RequestMethod[] |
all() |
String |
toString() |
static RequestMethod |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RequestMethod[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RequestMethod GET
public static final RequestMethod HEAD
public static final RequestMethod POST
public static final RequestMethod PUT
public static final RequestMethod PATCH
public static final RequestMethod DELETE
public static final RequestMethod OPTIONS
public static final RequestMethod TRACE
public static RequestMethod[] values()
for (RequestMethod c : RequestMethod.values()) System.out.println(c);
public static RequestMethod valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static RequestMethod[] all()
public String toString()
toString 在类中 Enum<RequestMethod>Copyright © 2019. All rights reserved.