public enum WebsocketSubprotocol extends Enum<WebsocketSubprotocol>
| Enum Constant and Description |
|---|
GRAPHQL_TRANSPORT_WS |
GRAPHQL_WS |
| Modifier and Type | Method and Description |
|---|---|
static WebsocketSubprotocol |
fromString(String text) |
String |
getProtocolId() |
static WebsocketSubprotocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebsocketSubprotocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebsocketSubprotocol GRAPHQL_WS
public static final WebsocketSubprotocol GRAPHQL_TRANSPORT_WS
public static WebsocketSubprotocol[] values()
for (WebsocketSubprotocol c : WebsocketSubprotocol.values()) System.out.println(c);
public static WebsocketSubprotocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getProtocolId()
public static WebsocketSubprotocol fromString(String text)
Copyright © 2018–2022. All rights reserved.