Package | Description |
---|---|
javax.websocket | |
javax.websocket.server |
Modifier and Type | Interface and Description |
---|---|
static interface |
Decoder.Binary<T>
This interface defines how a custom object (of type T) is decoded from a web socket message in
the form of a byte buffer.
|
static interface |
Decoder.BinaryStream<T>
This interface defines how a custom object is decoded from a web socket message in
the form of a binary stream.
|
static interface |
Decoder.Text<T>
This interface defines how a custom object is decoded from a web socket message in
the form of a string.
|
static interface |
Decoder.TextStream<T>
This interface defines how a custom object of type T is decoded from a web socket message in
the form of a character stream.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.Class<? extends Decoder>> |
DefaultClientEndpointConfig.decoders |
private java.util.List<java.lang.Class<? extends Decoder>> |
ClientEndpointConfig.Builder.decoders |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Class<? extends Decoder>> |
EndpointConfig.getDecoders()
Return the Decoder implementation classes configured.
|
java.util.List<java.lang.Class<? extends Decoder>> |
DefaultClientEndpointConfig.getDecoders()
Return the (unmodifiable) list of decoders this client will use.
|
Modifier and Type | Method and Description |
---|---|
ClientEndpointConfig.Builder |
ClientEndpointConfig.Builder.decoders(java.util.List<java.lang.Class<? extends Decoder>> decoders)
Assign the list of decoder 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 Decoder>> |
DefaultServerEndpointConfig.decoders |
private java.util.List<java.lang.Class<? extends Decoder>> |
ServerEndpointConfig.Builder.decoders |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Class<? extends Decoder>> |
DefaultServerEndpointConfig.getDecoders()
Return the Decoder implementation classes configured.
|
Modifier and Type | Method and Description |
---|---|
ServerEndpointConfig.Builder |
ServerEndpointConfig.Builder.decoders(java.util.List<java.lang.Class<? extends Decoder>> decoders)
Sets the decoder implementation classes to use in the configuration.
|
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) |