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