Uses of Interface
javax.websocket.Encoder
-
Packages that use Encoder 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. -
-
Uses of Encoder in javax.websocket
Subinterfaces of Encoder in javax.websocket Modifier and Type Interface 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.Methods in javax.websocket that return types with arguments of type Encoder Modifier and Type Method Description java.lang.Class<? extends Encoder>[]
encoders()
The array of Java classes that are to act as Encoders for messages sent by the client.java.util.List<java.lang.Class<? extends Encoder>>
EndpointConfig. getEncoders()
Return the Encoder implementation classes configured.Method parameters in javax.websocket with type arguments of type Encoder Modifier and Type Method 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. -
Uses of Encoder in javax.websocket.server
Methods in javax.websocket.server that return types with arguments of type Encoder Modifier and Type Method Description java.lang.Class<? extends Encoder>[]
encoders()
The ordered array of encoder classes this endpoint will use.Method parameters in javax.websocket.server with type arguments of type Encoder Modifier and Type Method 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. -
Uses of Encoder in org.glassfish.tyrus.core
Method parameters in org.glassfish.tyrus.core with type arguments of type Encoder Modifier and Type Method 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. -
Uses of Encoder in org.glassfish.tyrus.core.coder
Classes in org.glassfish.tyrus.core.coder that implement Encoder Modifier and Type Class 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
ToStringEncoder
Fall-back encoder - encoders any object to string usingObject.toString()
method.
-