public enum MethodType extends java.lang.Enum<MethodType>
枚举常量和说明 |
---|
ALL |
CONNECT |
DELETE |
GET |
HEAD |
HTTP
http general all
|
OPTIONS |
PATCH |
POST |
PUT |
SOCKET
socket listen
|
TRACE |
UNKNOWN |
限定符和类型 | 字段和说明 |
---|---|
java.lang.String |
name |
SignalType |
signal |
限定符和类型 | 方法和说明 |
---|---|
static MethodType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static MethodType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final MethodType GET
public static final MethodType POST
public static final MethodType PUT
public static final MethodType DELETE
public static final MethodType PATCH
public static final MethodType HEAD
public static final MethodType OPTIONS
public static final MethodType TRACE
public static final MethodType CONNECT
public static final MethodType UNKNOWN
public static final MethodType HTTP
public static final MethodType SOCKET
public static final MethodType ALL
public final java.lang.String name
public final SignalType signal
public static MethodType[] values()
for (MethodType c : MethodType.values()) System.out.println(c);
public static MethodType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值