public enum StompVersion extends Enum<StompVersion>
Modifier and Type | Field and Description |
---|---|
static AttributeKey<StompVersion> |
CHANNEL_ATTRIBUTE_KEY |
static String |
SUB_PROTOCOLS |
Modifier and Type | Method and Description |
---|---|
static StompVersion |
findBySubProtocol(String subProtocol) |
String |
subProtocol() |
static StompVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StompVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
String |
version() |
public static final StompVersion STOMP_V11
public static final StompVersion STOMP_V12
public static final AttributeKey<StompVersion> CHANNEL_ATTRIBUTE_KEY
public static final String SUB_PROTOCOLS
public static StompVersion[] values()
for (StompVersion c : StompVersion.values()) System.out.println(c);
public static StompVersion 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 version()
public String subProtocol()
public static StompVersion findBySubProtocol(String subProtocol)
Copyright © 2008–2021 The Netty Project. All rights reserved.