| Package | Description | 
|---|---|
| jakarta.websocket | This package contains all the Jakartq WebSocket APIs common to both the client and server side. | 
| jakarta.websocket.server | This package contains all the Jakarta WebSocket APIs used only by server side applications. | 
| org.glassfish.tyrus.core | Core classes. | 
| org.glassfish.tyrus.core.coder | Encoder and decoder adapters and built-in implementations. | 
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | Encoder.Binary<T>This interface defines how to provide a way to convert a custom object into a binary message. | 
| static interface  | Encoder.BinaryStream<T>This interface may be implemented by encoding algorithms that want to write the encoded object to a binary
 stream. | 
| static interface  | Encoder.Text<T>This interface defines how to provide a way to convert a custom object into a text message. | 
| static interface  | Encoder.TextStream<T>This interface may be implemented by encoding algorithms that want to write the encoded object to a character
 stream. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.util.List<java.lang.Class<? extends Encoder>> | EndpointConfig. getEncoders()Return the Encoder implementation classes configured. | 
| Modifier and Type | Method and Description | 
|---|---|
| ClientEndpointConfig.Builder | ClientEndpointConfig.Builder. encoders(java.util.List<java.lang.Class<? extends Encoder>> encoders)Assign the list of encoder implementation classes the client will use. | 
| Modifier and Type | Method and Description | 
|---|---|
| ServerEndpointConfig.Builder | ServerEndpointConfig.Builder. encoders(java.util.List<java.lang.Class<? extends Encoder>> encoders)Sets the list of encoder implementation classes for this builder. | 
| Modifier and Type | Method and Description | 
|---|---|
| TyrusServerEndpointConfig.Builder | TyrusServerEndpointConfig.Builder. encoders(java.util.List<java.lang.Class<? extends Encoder>> encoders)Sets the list of encoder implementation classes for this builder. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | CoderWrapper<T>Wrapper of coders storing the coder coder class (and optionally coder instance), return type of the encode / decode
 method and coder class. | 
| class  | NoOpByteArrayCoder | 
| class  | NoOpByteBufferCoder | 
| class  | NoOpTextCoder | 
| class  | ToStringEncoderFall-back encoder - encoders any object to string using  Object.toString()method. | 
Copyright © 2012–2020 Oracle Corporation. All rights reserved.