public class CloseReason
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CloseReason |
ABNORMAL_CLOSURE
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
BAD_GATEWAY
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
GOING_AWAY
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
INTERNAL_ERROR
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
INVALID_FRAME_PAYLOAD_DATA
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
MESSAGE_TO_BIG
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
MISSING_EXTENSION
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
NO_STATUS_RECEIVED
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
NORMAL
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
POLICY_VIOLATION
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
PROTOCOL_ERROR
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
SERVICE_RESTART
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
TLS_HANDSHAKE
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
TRY_AGAIN_LATER
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
static CloseReason |
UNSUPPORTED_DATA
See https://tools.ietf.org/html/rfc6455#section-11.7.
|
Constructor and Description |
---|
CloseReason(int code,
java.lang.String reason)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getCode() |
java.lang.String |
getReason() |
int |
hashCode() |
java.lang.String |
toString() |
public static final CloseReason NORMAL
public static final CloseReason GOING_AWAY
public static final CloseReason PROTOCOL_ERROR
public static final CloseReason UNSUPPORTED_DATA
public static final CloseReason NO_STATUS_RECEIVED
public static final CloseReason ABNORMAL_CLOSURE
public static final CloseReason INVALID_FRAME_PAYLOAD_DATA
public static final CloseReason POLICY_VIOLATION
public static final CloseReason MESSAGE_TO_BIG
public static final CloseReason MISSING_EXTENSION
public static final CloseReason INTERNAL_ERROR
public static final CloseReason SERVICE_RESTART
public static final CloseReason TRY_AGAIN_LATER
public static final CloseReason BAD_GATEWAY
public static final CloseReason TLS_HANDSHAKE
public CloseReason(int code, java.lang.String reason)
code
- The code.reason
- The reason.public int getCode()
public java.lang.String getReason()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object