Package io.undertow.websockets.core
Enum WebSocketFrameType
- All Implemented Interfaces:
Serializable
,Comparable<WebSocketFrameType>
,java.lang.constant.Constable
The different WebSocketFrame types which are out there.
- Author:
- Norman Maurer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWebSocketFrame contains binary dataWebSocketFrame which requests the close of the WebSockets connectionWebSocketFrame which notify about more data to comeWebSocketFrame which represent a ping requestWebSocketFrame which should be issued after aPING
was receivedWebSocketFrame contains UTF-8 encodedString
Unknown frame-type -
Method Summary
Modifier and TypeMethodDescriptionstatic WebSocketFrameType
Returns the enum constant of this type with the specified name.static WebSocketFrameType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BINARY
WebSocketFrame contains binary data -
TEXT
WebSocketFrame contains UTF-8 encodedString
-
PING
WebSocketFrame which represent a ping request -
PONG
WebSocketFrame which should be issued after aPING
was received -
CLOSE
WebSocketFrame which requests the close of the WebSockets connection -
CONTINUATION
WebSocketFrame which notify about more data to come -
UNKOWN
Unknown frame-type
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-