public class CloseReason extends Object
| Modifier and Type | Field and Description | 
|---|---|
| static CloseReason | ABNORMAL_CLOSURESee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | BAD_GATEWAYSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | GOING_AWAYSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | INTERNAL_ERRORSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | INVALID_FRAME_PAYLOAD_DATASee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | MESSAGE_TO_BIGSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | MISSING_EXTENSIONSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | NO_STATUS_RECEIVEDSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | NORMALSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | POLICY_VIOLATIONSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | PROTOCOL_ERRORSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | SERVICE_RESTARTSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | TLS_HANDSHAKESee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | TRY_AGAIN_LATERSee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| static CloseReason | UNSUPPORTED_DATASee https://tools.ietf.org/html/rfc6455#section-11.7. | 
| Constructor and Description | 
|---|
| CloseReason(int code,
           String reason)Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| int | getCode() | 
| String | getReason() | 
| int | hashCode() | 
| 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,
                   String reason)
code - The code.reason - The reason.public int getCode()
public String getReason()