public enum MethodType extends Enum<MethodType>
| 枚举常量和说明 |
|---|
ALL |
CONNECT |
DELETE |
GET |
HEAD |
HTTP
http general all
|
OPTIONS |
PATCH |
POST |
PUT |
SOCKET
socket listen
|
TRACE |
WEBSOCKET
web socket send
|
| 限定符和类型 | 字段和说明 |
|---|---|
String |
name |
SignalType |
signal |
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 TRACE
public static final MethodType OPTIONS
public static final MethodType CONNECT
public static final MethodType HTTP
public static final MethodType WEBSOCKET
public static final MethodType SOCKET
public static final MethodType ALL
public final String name
public final SignalType signal
public static MethodType[] values()
for (MethodType c : MethodType.values()) System.out.println(c);
public static MethodType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2022. All rights reserved.