public static enum CloseReason.CloseCodes extends Enum<CloseReason.CloseCodes> implements CloseReason.CloseCode
Enum Constant and Description |
---|
CANNOT_ACCEPT |
CLOSED_ABNORMALLY |
GOING_AWAY |
NO_EXTENSION |
NO_STATUS_CODE |
NORMAL_CLOSURE |
NOT_CONSISTENT |
PROTOCOL_ERROR |
RESERVED |
SERVICE_RESTART |
TLS_HANDSHAKE_FAILURE |
TOO_BIG |
TRY_AGAIN_LATER |
UNEXPECTED_CONDITION |
VIOLATED_POLICY |
Modifier and Type | Method and Description |
---|---|
static CloseReason.CloseCode |
getCloseCode(int code) |
int |
getCode() |
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.
|
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
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 nameNullPointerException
- if the argument is nullpublic static CloseReason.CloseCode getCloseCode(int code)
public int getCode()
getCode
in interface CloseReason.CloseCode
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.