public enum WebSocketChannel extends Enum<WebSocketChannel>
Description: WebSocket通道
| 枚举常量和说明 |
|---|
NOTICE
个人通知
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getDescription() |
String |
getDestination() |
static List<Map<String,Object>> |
getToJsonStruct() |
static WebSocketChannel |
getWebSocketChannel(String code) |
static WebSocketChannel |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static WebSocketChannel[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final WebSocketChannel NOTICE
public static WebSocketChannel[] values()
for (WebSocketChannel c : WebSocketChannel.values()) System.out.println(c);
public static WebSocketChannel valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getDestination()
public String getDescription()
public static WebSocketChannel getWebSocketChannel(String code)
Copyright © 2023 Dromara. All rights reserved.