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
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
isHttpMethod() |
static MethodType |
valueOf(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 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 int code
public static MethodType[] values()
for (MethodType c : MethodType.values()) System.out.println(c);
public static MethodType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public boolean isHttpMethod()
Copyright © 2020. All rights reserved.