|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<CloseReason.Code>
javax.net.websocket.CloseReason.Code
public static enum CloseReason.Code
Enumeration of status codes for a web socket close.
| Method Summary | |
|---|---|
int |
getCode()
Return the code number of this status code. |
static CloseReason.Code |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CloseReason.Code[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final CloseReason.Code NORMAL_CLOSURE
public static final CloseReason.Code GOING_AWAY
public static final CloseReason.Code PROTOCOL_ERROR
public static final CloseReason.Code CANNOT_ACCEPT
public static final CloseReason.Code RESERVED
public static final CloseReason.Code NO_STATUS_CODE
public static final CloseReason.Code CLOSED_ABNORMALLY
public static final CloseReason.Code NOT_CONSISTENT
public static final CloseReason.Code VIOLATED_POLICY
public static final CloseReason.Code TOO_BIG
public static final CloseReason.Code NO_EXTENSION
public static final CloseReason.Code UNEXPECTED_CONDITION
public static final CloseReason.Code TLS_HANDSHAKE_FAILURE
| Method Detail |
|---|
public static CloseReason.Code[] values()
for (CloseReason.Code c : CloseReason.Code.values()) System.out.println(c);
public static CloseReason.Code valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||