| Package | Description | 
|---|---|
| javax.websocket | This package contains all the Jakartq WebSocket APIs common to both the client and server side. | 
| org.glassfish.tyrus.core | Core classes. | 
| 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,
           java.lang.String reasonPhrase)Creates a reason for closing a web socket connection with the given code and reason phrase. | 
| Modifier and Type | Method and Description | 
|---|---|
| static CloseReason | CloseReasons. create(CloseReason.CloseCode closeCode,
      java.lang.String reasonPhrase) | 
Copyright © 2012–2025 Oracle Corporation. All rights reserved.