Enum WebSocketClientProtocolHandler.ClientHandshakeStateEvent
- java.lang.Object
-
- java.lang.Enum<WebSocketClientProtocolHandler.ClientHandshakeStateEvent>
-
- io.netty.handler.codec.http.websocketx.WebSocketClientProtocolHandler.ClientHandshakeStateEvent
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WebSocketClientProtocolHandler.ClientHandshakeStateEvent>
- Enclosing class:
- WebSocketClientProtocolHandler
public static enum WebSocketClientProtocolHandler.ClientHandshakeStateEvent extends java.lang.Enum<WebSocketClientProtocolHandler.ClientHandshakeStateEvent>
Events that are fired to notify about handshake status
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HANDSHAKE_COMPLETE
The Handshake was complete successful and so the channel was upgraded to websocketsHANDSHAKE_ISSUED
The Handshake was started but the server did not response yet to the requestHANDSHAKE_TIMEOUT
The Handshake was timed out
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static WebSocketClientProtocolHandler.ClientHandshakeStateEvent
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WebSocketClientProtocolHandler.ClientHandshakeStateEvent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HANDSHAKE_TIMEOUT
public static final WebSocketClientProtocolHandler.ClientHandshakeStateEvent HANDSHAKE_TIMEOUT
The Handshake was timed out
-
HANDSHAKE_ISSUED
public static final WebSocketClientProtocolHandler.ClientHandshakeStateEvent HANDSHAKE_ISSUED
The Handshake was started but the server did not response yet to the request
-
HANDSHAKE_COMPLETE
public static final WebSocketClientProtocolHandler.ClientHandshakeStateEvent HANDSHAKE_COMPLETE
The Handshake was complete successful and so the channel was upgraded to websockets
-
-
Method Detail
-
values
public static WebSocketClientProtocolHandler.ClientHandshakeStateEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WebSocketClientProtocolHandler.ClientHandshakeStateEvent c : WebSocketClientProtocolHandler.ClientHandshakeStateEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebSocketClientProtocolHandler.ClientHandshakeStateEvent valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-