Package | Description |
---|---|
javax.websocket |
This package contains all the WebSocket APIs common to both the client and server side.
|
org.glassfish.tyrus.core |
Core classes.
|
org.glassfish.tyrus.core.coder |
Encoder and decoder adapters and built-in implementations.
|
Modifier and Type | Method and Description |
---|---|
String |
Encoder.Text.encode(T object)
Encode the given object into a String.
|
ByteBuffer |
Encoder.Binary.encode(T object)
Encode the given object into a byte array.
|
void |
Encoder.BinaryStream.encode(T object,
OutputStream os)
Encode the given object into a binary stream written to the implementation provided OutputStream.
|
void |
Encoder.TextStream.encode(T object,
Writer writer)
Encode the given object to a character stream writing it to the supplied Writer.
|
void |
RemoteEndpoint.Basic.sendObject(Object data)
Sends a custom developer object, blocking until it has been transmitted.
|
Modifier and Type | Method and Description |
---|---|
Object |
TyrusEndpointWrapper.doEncode(Session session,
Object message) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
NoOpByteArrayCoder.encode(byte[] object) |
ByteBuffer |
NoOpByteBufferCoder.encode(ByteBuffer object) |
String |
ToStringEncoder.encode(Object object) |
String |
NoOpTextCoder.encode(String object) |
Copyright © 2012–2019 Oracle Corporation. All rights reserved.