|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<CloseReason.CloseCodes>
javax.websocket.CloseReason.CloseCodes
public static enum CloseReason.CloseCodes
An Enumeration of status codes for a web socket close that are defined in the specification.
| Method Summary | |
|---|---|
int |
getCode()
Return the code number of this status code. |
static CloseReason.CloseCodes |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CloseReason.CloseCodes[] |
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.CloseCodes NORMAL_CLOSURE
public static final CloseReason.CloseCodes GOING_AWAY
public static final CloseReason.CloseCodes PROTOCOL_ERROR
public static final CloseReason.CloseCodes CANNOT_ACCEPT
public static final CloseReason.CloseCodes RESERVED
public static final CloseReason.CloseCodes NO_STATUS_CODE
public static final CloseReason.CloseCodes CLOSED_ABNORMALLY
public static final CloseReason.CloseCodes NOT_CONSISTENT
public static final CloseReason.CloseCodes VIOLATED_POLICY
public static final CloseReason.CloseCodes TOO_BIG
public static final CloseReason.CloseCodes NO_EXTENSION
public static final CloseReason.CloseCodes UNEXPECTED_CONDITION
public static final CloseReason.CloseCodes SERVICE_RESTART
public static final CloseReason.CloseCodes TRY_AGAIN_LATER
public static final CloseReason.CloseCodes TLS_HANDSHAKE_FAILURE
| Method Detail |
|---|
public static CloseReason.CloseCodes[] values()
for (CloseReason.CloseCodes c : CloseReason.CloseCodes.values()) System.out.println(c);
public static CloseReason.CloseCodes 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()
getCode in interface CloseReason.CloseCode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||