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