public enum WebSocketVersion extends Enum<WebSocketVersion>
Enum which list all the different versions of the WebSocket specification (to the current date).
A specification is tied to one wire protocol version but a protocol version may have use by more than 1 version of the specification.
Enum Constant and Description |
---|
UNKNOWN Unknown version of the protocol |
V00 |
V07 |
V08 |
V13 |
Modifier and Type | Field and Description |
---|---|
static AttachmentKey<WebSocketVersion> | ATTACHMENT_KEY |
Modifier and Type | Method and Description |
---|---|
String | toHttpHeaderValue() Returns a String representation of the WebSocketVersion that can be used in the HTTP Headers. |
static WebSocketVersion | valueOf(String name) Returns the enum constant of this type with the specified name. |
static WebSocketVersion[] | values() Returns an array containing the constants of this enum type, in the order they are declared. |
public static final WebSocketVersion UNKNOWN
public static final WebSocketVersion V00
public static final WebSocketVersion V07
public static final WebSocketVersion V08
public static final WebSocketVersion V13
public static final AttachmentKey<WebSocketVersion> ATTACHMENT_KEY
public static WebSocketVersion[] values()
for (WebSocketVersion c : WebSocketVersion.values()) System.out.println(c);
public static WebSocketVersion 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 toHttpHeaderValue()
String
representation of the WebSocketVersion
that can be used in the HTTP Headers.Copyright © 2015 JBoss by Red Hat. All rights reserved.