public interface CloseFrame extends Framedata
Framedata.Opcode
Modifier and Type | Field and Description |
---|---|
static int |
ABNORMAL_CLOSE
1006 is a reserved value and MUST NOT be set as a status code in a
Close control frame by an endpoint.
|
static int |
BUGGYCLOSE |
static int |
EXTENSION
1010 indicates that an endpoint (client) is terminating the
connection because it has expected the server to negotiate one or
more extension, but the server didn't return them in the response
message of the WebSocket handshake.
|
static int |
FLASHPOLICY |
static int |
GOING_AWAY
1001 indicates that an endpoint is "going away", such as a server
going down, or a browser having navigated away from a page.
|
static int |
NEVER_CONNECTED
The connection had never been established
|
static int |
NO_UTF8
1007 indicates that an endpoint is terminating the connection
because it has received data within a message that was not
consistent with the type of the message (e.g., non-UTF-8 [RFC3629]
data within a text message).
|
static int |
NOCODE
1005 is a reserved value and MUST NOT be set as a status code in a
Close control frame by an endpoint.
|
static int |
NORMAL
indicates a normal closure, meaning whatever purpose the
connection was established for has been fulfilled.
|
static int |
POLICY_VALIDATION
1008 indicates that an endpoint is terminating the connection
because it has received a message that violates its policy.
|
static int |
PROTOCOL_ERROR
1002 indicates that an endpoint is terminating the connection due
to a protocol error.
|
static int |
REFUSE
1003 indicates that an endpoint is terminating the connection
because it has received a type of data it cannot accept (e.g.
|
static int |
TLS_ERROR
1015 is a reserved value and MUST NOT be set as a status code in a
Close control frame by an endpoint.
|
static int |
TOOBIG
1009 indicates that an endpoint is terminating the connection
because it has received a message which is too big for it to
process.
|
static int |
UNEXPECTED_CONDITION
1011 indicates that a server is terminating the connection because
it encountered an unexpected condition that prevented it from
fulfilling the request.
|
Modifier and Type | Method and Description |
---|---|
int |
getCloseCode() |
String |
getMessage() |
append, getOpcode, getPayloadData, getTransfereMasked, isFin
static final int NORMAL
static final int GOING_AWAY
static final int PROTOCOL_ERROR
static final int REFUSE
static final int NOCODE
static final int ABNORMAL_CLOSE
static final int NO_UTF8
static final int POLICY_VALIDATION
static final int TOOBIG
static final int EXTENSION
static final int UNEXPECTED_CONDITION
static final int TLS_ERROR
static final int NEVER_CONNECTED
static final int BUGGYCLOSE
static final int FLASHPOLICY
int getCloseCode() throws InvalidFrameException
InvalidFrameException
String getMessage() throws InvalidDataException
InvalidDataException
Copyright © 2013. All Rights Reserved.