public enum WebSocketStatus extends Enum<WebSocketStatus>
| Enum Constant and Description |
|---|
AUTHENTICATED
The connection is established and authenticated.
|
CLOSED
The connection has been closed or could not be opened.
|
CLOSING
The connection is going through the closing handshake.
|
CONNECTING
The connection has not yet been established.
|
OPEN
The WebSocket connection is established and communication is possible
|
RECONNECTING
The connection manager is trying to re-connect, but not yet connected.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStatus() |
boolean |
isAuthenticated() |
boolean |
isClosable() |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isWritable() |
static WebSocketStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebSocketStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebSocketStatus CONNECTING
public static final WebSocketStatus OPEN
public static final WebSocketStatus CLOSING
public static final WebSocketStatus CLOSED
public static final WebSocketStatus RECONNECTING
public static final WebSocketStatus AUTHENTICATED
public static WebSocketStatus[] values()
for (WebSocketStatus c : WebSocketStatus.values()) System.out.println(c);
public static WebSocketStatus 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 int getStatus()
public boolean isWritable()
public boolean isConnected()
public boolean isAuthenticated()
public boolean isClosable()
public boolean isClosed()
Copyright © 2013. All Rights Reserved.