| Package | Description |
|---|---|
| javax.websocket | |
| javax.websocket.server |
| 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 | Field and Description |
|---|---|
private java.util.List<java.lang.Class<? extends Encoder>> |
DefaultClientEndpointConfig.encoders |
private java.util.List<java.lang.Class<? extends Encoder>> |
ClientEndpointConfig.Builder.encoders |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Class<? extends Encoder>> |
EndpointConfig.getEncoders()
Return the Encoder implementation classes configured.
|
java.util.List<java.lang.Class<? extends Encoder>> |
DefaultClientEndpointConfig.getEncoders()
Return the (unmodifiable) list of encoders this client will use.
|
| 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.
|
| Constructor and Description |
|---|
DefaultClientEndpointConfig(java.util.List<java.lang.String> preferredSubprotocols,
java.util.List<Extension> extensions,
java.util.List<java.lang.Class<? extends Encoder>> encoders,
java.util.List<java.lang.Class<? extends Decoder>> decoders,
ClientEndpointConfig.Configurator clientEndpointConfigurator) |
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.Class<? extends Encoder>> |
DefaultServerEndpointConfig.encoders |
private java.util.List<java.lang.Class<? extends Encoder>> |
ServerEndpointConfig.Builder.encoders |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.Class<? extends Encoder>> |
DefaultServerEndpointConfig.getEncoders()
Return the Encoder implementation classes configured.
|
| 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.
|
| Constructor and Description |
|---|
DefaultServerEndpointConfig(java.lang.Class<?> endpointClass,
java.lang.String path,
java.util.List<java.lang.String> subprotocols,
java.util.List<Extension> extensions,
java.util.List<java.lang.Class<? extends Encoder>> encoders,
java.util.List<java.lang.Class<? extends Decoder>> decoders,
ServerEndpointConfig.Configurator serverEndpointConfigurator) |