Package | Description |
---|---|
javax.websocket |
This package contains all the WebSocket APIs common to both the client
and server side.
|
Modifier and Type | Class | Description |
---|---|---|
static class |
CloseReason.CloseCodes |
An Enumeration of status codes for a web socket close that
are defined in the specification.
|
Modifier and Type | Method | Description |
---|---|---|
static CloseReason.CloseCode |
CloseReason.CloseCodes.getCloseCode(int code) |
Creates a CloseCode from the given int code number.
|
CloseReason.CloseCode |
CloseReason.getCloseCode() |
The Close code associated with this CloseReason.
|
Constructor | Description |
---|---|
CloseReason(CloseReason.CloseCode closeCode,
String reasonPhrase) |
Creates a reason for closing a web socket connection with the given
code and reason phrase.
|
Copyright © 2019 Oracle. All rights reserved.