| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| private final Throwable | |
| private final int | |
| public static final int | |
| public static final int | |
| pack-priv static final int | |
| public static final int | |
| public static final int | |
| public static final CloseStatus | |
| public static final int | |
| public static final CloseStatus | |
| public static final int | |
| public static final CloseStatus | |
| public static final int | |
| public static final int | |
| private final String | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CloseStatus(int
the close code statusCode)Creates a reason for closing a web socket connection with the given status code and no reason phrase. |
| public | CloseStatus(int
the close code statusCode, String the reason phrase reasonPhrase)Creates a reason for closing a web socket connection with the given status code and reason phrase. |
| public | CloseStatus(int
the close code statusCode, Throwable the error which caused the close cause)Creates a reason for closing a web socket connection with the given status code and reason phrase. |
| public | CloseStatus(int
the close code statusCode, String the reason phrase reasonPhrase, Throwable the error which caused the close cause)Creates a reason for closing a web socket connection with the given status code and reason phrase. |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | |
| public static ByteBuffer | |
| public static String | |
| public Throwable | |
| public static CloseStatus | |
| public int | |
| public String | |
| public boolean | |
| public boolean | |
| public static boolean | |
| public static boolean | Returns: true if transmittablethe statusCode to test statusCode)Test if provided status code can be sent/received on a WebSocket close. |
| public Frame | |
| public static Frame | |
| public static Frame | |
| public String | |
| private static byte[] |
| BAD_DATA | back to summary |
|---|---|
| public static final int BAD_DATA | |
| BAD_GATEWAY | back to summary |
|---|---|
| public static final int BAD_GATEWAY | |
| BAD_PAYLOAD | back to summary |
|---|---|
| public static final int BAD_PAYLOAD | |
| cause | back to summary |
|---|---|
| private final Throwable cause | |
| code | back to summary |
|---|---|
| private final int code | |
| EXTENSION_ERROR | back to summary |
|---|---|
| public static final int EXTENSION_ERROR | |
| FAILED_TLS_HANDSHAKE | back to summary |
|---|---|
| public static final int FAILED_TLS_HANDSHAKE | |
| MAX_REASON_PHRASE | back to summary |
|---|---|
| pack-priv static final int MAX_REASON_PHRASE | |
| MESSAGE_TOO_LARGE | back to summary |
|---|---|
| public static final int MESSAGE_TOO_LARGE | |
| NO_CLOSE | back to summary |
|---|---|
| public static final int NO_CLOSE | |
| NO_CLOSE_STATUS | back to summary |
|---|---|
| public static final CloseStatus NO_CLOSE_STATUS | |
| NO_CODE | back to summary |
|---|---|
| public static final int NO_CODE | |
| NO_CODE_STATUS | back to summary |
|---|---|
| public static final CloseStatus NO_CODE_STATUS | |
| NORMAL | back to summary |
|---|---|
| public static final int NORMAL | |
| NORMAL_STATUS | back to summary |
|---|---|
| public static final CloseStatus NORMAL_STATUS | |
| POLICY_VIOLATION | back to summary |
|---|---|
| public static final int POLICY_VIOLATION | |
| PROTOCOL | back to summary |
|---|---|
| public static final int PROTOCOL | |
| reason | back to summary |
|---|---|
| private final String reason | |
| RESERVED | back to summary |
|---|---|
| public static final int RESERVED | |
| SERVER_ERROR | back to summary |
|---|---|
| public static final int SERVER_ERROR | |
| SERVICE_RESTART | back to summary |
|---|---|
| public static final int SERVICE_RESTART | |
| SHUTDOWN | back to summary |
|---|---|
| public static final int SHUTDOWN | |
| TRY_AGAIN_LATER | back to summary |
|---|---|
| public static final int TRY_AGAIN_LATER | |
| CloseStatus | back to summary |
|---|---|
| public CloseStatus() Creates a reason for closing a web socket connection with the no given status code. | |
| CloseStatus | back to summary |
|---|---|
| public CloseStatus(int statusCode) Creates a reason for closing a web socket connection with the given status code and no reason phrase.
| |
| CloseStatus | back to summary |
|---|---|
| public CloseStatus(int statusCode, String reasonPhrase) Creates a reason for closing a web socket connection with the given status code and reason phrase.
| |
| CloseStatus | back to summary |
|---|---|
| public CloseStatus(int statusCode, Throwable cause) Creates a reason for closing a web socket connection with the given status code and reason phrase.
| |
| CloseStatus | back to summary |
|---|---|
| public CloseStatus(int statusCode, String reasonPhrase, Throwable cause) Creates a reason for closing a web socket connection with the given status code and reason phrase. | |
| CloseStatus | back to summary |
|---|---|
| public CloseStatus(Frame frame) | |
| CloseStatus | back to summary |
|---|---|
| public CloseStatus(ByteBuffer payload) | |
| asPayloadBuffer | back to summary |
|---|---|
| public ByteBuffer asPayloadBuffer() | |
| asPayloadBuffer | back to summary |
|---|---|
| public static ByteBuffer asPayloadBuffer(int statusCode, String reason) | |
| codeString | back to summary |
|---|---|
| public static String codeString(int closeStatus) | |
| getCause | back to summary |
|---|---|
| public Throwable getCause() | |
| getCloseStatus | back to summary |
|---|---|
| public static CloseStatus getCloseStatus(Frame frame) | |
| getCode | back to summary |
|---|---|
| public int getCode() | |
| getReason | back to summary |
|---|---|
| public String getReason() | |
| isAbnormal | back to summary |
|---|---|
| public boolean isAbnormal() | |
| isNormal | back to summary |
|---|---|
| public boolean isNormal() | |
| isOrdinary | back to summary |
|---|---|
| public static boolean isOrdinary(int closeCode) | |
| isTransmittableStatusCode | back to summary |
|---|---|
| public static boolean isTransmittableStatusCode(int statusCode) Test if provided status code can be sent/received on a WebSocket close. This honors the RFC6455 rules and IANA rules.
| |
| toFrame | back to summary |
|---|---|
| public Frame toFrame() | |
| toFrame | back to summary |
|---|---|
| public static Frame toFrame(int closeStatus) | |
| toFrame | back to summary |
|---|---|
| public static Frame toFrame(int closeStatus, String reason) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| truncateToFit | back to summary |
|---|---|
| private static byte[] truncateToFit(byte[] bytes, int maxBytes) | |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CloseStatus | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| CloseFrame | back to summary |
|---|---|
| public CloseFrame(byte opcode) | |
| CloseFrame | back to summary |
|---|---|
| public CloseFrame(byte opCode, boolean fin, ByteBuffer payload) | |
| getCloseStatus | back to summary |
|---|---|
| public CloseStatus getCloseStatus() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Method and Description |
|---|---|
| public CloseStatus |
| getCloseStatus | back to summary |
|---|---|
| public CloseStatus getCloseStatus() | |