@Deprecated public interface ClosingMessage
| Modifier and Type | Field and Description | 
|---|---|
static int | 
NO_STATUS_CODE
Deprecated.  
Do not send the status code with the closing handshake. 
 | 
static int | 
SC_GOING_AWAY
Deprecated.  
Indicates that an endpoint is "going away", such as a server is
 going down or a browser has navigated away from a page. 
 | 
static int | 
SC_INTERNAL_SERVER_ERROR
Deprecated.  
Indicates that a server is terminating the connection because it
 encountered an unexpected condition that prevented it from fullfilling the
 request. 
 | 
static int | 
SC_INVALID_FRAME_PAYLOAD_DATA
Deprecated.  
Indicates that an endpoint is terminating the connection because it has
 received data within a message that is not consistent with the type of 
 message. 
 | 
static int | 
SC_MESSAGE_TOO_BIG
Deprecated.  
Indicates that an endpoint is terminating the connection because it has
 received a message that is too big for it to process. 
 | 
static int | 
SC_NORMAL_CLOSURE
Deprecated.  
Indicates a normal closure, meaning that the purpose for
 which the connection was established has been fulfilled. 
 | 
static int | 
SC_POLICY_VOILATION
Deprecated.  
Indicates that an endpoint is terminating the connection because it has
 received a message that violates its policy. 
 | 
static int | 
SC_PROTOCOL_ERROR
Deprecated.  
Indicates that an endpoint is terminating the connection due
 to a protocol error. 
 | 
static int | 
SC_UNSUPPORTED_DATA
Deprecated.  
Indicates that an endpoint is terminating the connection
 because it has received a type of data it cannot accept (for example, an
 endpoint that understands only text data may send this if it
 receives a binary message). 
 | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getReason()
Deprecated.  
Get reason of the closing handshake. 
 | 
int | 
getStatusCode()
Deprecated.  
Get status code of the closing handshake. 
 | 
static final int NO_STATUS_CODE
static final int SC_NORMAL_CLOSURE
static final int SC_GOING_AWAY
static final int SC_PROTOCOL_ERROR
static final int SC_UNSUPPORTED_DATA
static final int SC_INVALID_FRAME_PAYLOAD_DATA
static final int SC_POLICY_VOILATION
ClosingMessage.SC_UNSUPPORTED_DATA or 1009) or if there is a need to hide
 specific details about the policy.static final int SC_MESSAGE_TOO_BIG
static final int SC_INTERNAL_SERVER_ERROR
int getStatusCode()
ClosingMessage.NO_STATUS_CODE will be returned
 if there is no status code sent with the closing message.String getReason()