Package | Description |
---|---|
javax.websocket |
This package contains all the WebSocket APIs common to both the client and server side.
|
javax.websocket.server |
This package contains all the 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 |
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 | Method and Description |
---|---|
List<Class<? extends Decoder>> |
EndpointConfig.getDecoders()
Return the Decoder implementation classes configured.
|
Modifier and Type | Method and Description |
---|---|
ClientEndpointConfig.Builder |
ClientEndpointConfig.Builder.decoders(List<Class<? extends Decoder>> decoders)
Assign the list of decoder implementation classes the client will use.
|
Modifier and Type | Method and Description |
---|---|
ServerEndpointConfig.Builder |
ServerEndpointConfig.Builder.decoders(List<Class<? extends Decoder>> decoders)
Sets the decoder implementation classes to use in the configuration.
|
Modifier and Type | Method and Description |
---|---|
TyrusServerEndpointConfig.Builder |
TyrusServerEndpointConfig.Builder.decoders(List<Class<? extends Decoder>> decoders)
Sets the decoder implementation classes to use in the configuration.
|
static MessageHandlerManager |
MessageHandlerManager.fromDecoderClasses(List<Class<? extends Decoder>> decoderClasses)
Construct manager.
|
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 |
InputStreamDecoder
Built in
Decoder for InputStream . |
class |
NoOpByteArrayCoder
|
class |
NoOpByteBufferCoder
|
class |
NoOpTextCoder |
class |
PrimitiveDecoders<T>
Collection of decoders for all primitive types.
|
static class |
PrimitiveDecoders.BooleanDecoder |
static class |
PrimitiveDecoders.ByteDecoder |
static class |
PrimitiveDecoders.CharacterDecoder |
static class |
PrimitiveDecoders.DoubleDecoder |
static class |
PrimitiveDecoders.FloatDecoder |
static class |
PrimitiveDecoders.IntegerDecoder |
static class |
PrimitiveDecoders.LongDecoder |
static class |
PrimitiveDecoders.ShortDecoder |
class |
ReaderDecoder
|
Modifier and Type | Field and Description |
---|---|
static List<Class<? extends Decoder>> |
PrimitiveDecoders.ALL |
Copyright © 2012–2019 Oracle Corporation. All rights reserved.