Top Description Fields Constructors Methods
io.undertow.websockets.core

public final Enum WebSocketVersion

extends Enum<WebSocketVersion>
Class Inheritance
Imports
io.undertow.util.AttachmentKey

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.

Author
Norman Maurer

Field Summary

Modifier and TypeField and Description
public static final AttachmentKey<WebSocketVersion>
public static final WebSocketVersion
UNKNOWN

Unknown version of the protocol

public static final WebSocketVersion
public static final WebSocketVersion
public static final WebSocketVersion
public static final WebSocketVersion

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
toHttpHeaderValue()

Returns a String representation of the WebSocketVersion that can be used in the HTTP Headers.

public static WebSocketVersion
public static WebSocketVersion[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ATTACHMENT_KEYback to summary
public static final AttachmentKey<WebSocketVersion> ATTACHMENT_KEY
UNKNOWNback to summary
public static final WebSocketVersion UNKNOWN

Unknown version of the protocol

V00back to summary
public static final WebSocketVersion V00

draft-ietf-hybi-thewebsocketprotocol- 00.

V07back to summary
public static final WebSocketVersion V07

draft-ietf-hybi-thewebsocketprotocol- 07

V08back to summary
public static final WebSocketVersion V08

draft-ietf-hybi-thewebsocketprotocol- 10

V13back to summary
public static final WebSocketVersion V13

RFC 6455. This was originally draft-ietf-hybi-thewebsocketprotocol- 17

Constructor Detail

WebSocketVersionback to summary
private WebSocketVersion()

Method Detail

toHttpHeaderValueback to summary
public String toHttpHeaderValue()

Returns a String representation of the WebSocketVersion that can be used in the HTTP Headers.

valueOfback to summary
public static WebSocketVersion valueOf(String name)
valuesback to summary
public static WebSocketVersion[] values()