public enum CloseReason extends Enum<CloseReason>
| Enum Constant and Description |
|---|
BROKEN
The connection was broken.
|
CLIENT
The client closed the connection.
|
SERVER
The server closed the connection.
|
SERVER_REDIRECT_CONNECTION
The server redirect new connections
|
SERVER_REJECT_CONNECTION
The server rejects the connection
|
SHUTDOWN
The server was shut down.
|
TIMEOUT
The session timeout exceeded.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
static CloseReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseReason BROKEN
public static final CloseReason TIMEOUT
public static final CloseReason SERVER
public static final CloseReason CLIENT
public static final CloseReason SHUTDOWN
public static final CloseReason SERVER_REJECT_CONNECTION
public static final CloseReason SERVER_REDIRECT_CONNECTION
public static CloseReason[] values()
for (CloseReason c : CloseReason.values()) System.out.println(c);
public static CloseReason 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 getCode()
Copyright © 2013. All Rights Reserved.