public class TyrusRemoteEndpoint
extends org.glassfish.tyrus.spi.SPIRemoteEndpoint
SPIRemoteEndpoint implementation.| Constructor and Description |
|---|
TyrusRemoteEndpoint(org.glassfish.tyrus.websockets.WebSocket socket)
Create remote endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(javax.websocket.CloseReason closeReason) |
static TyrusRemoteEndpoint |
get(org.glassfish.tyrus.websockets.WebSocket socket)
Get
TyrusRemoteEndpoint instance. |
static void |
remove(org.glassfish.tyrus.websockets.WebSocket socket)
Remove socket.
|
Future<org.glassfish.tyrus.websockets.DataFrame> |
sendBinary(ByteBuffer byteBuffer) |
Future<org.glassfish.tyrus.websockets.DataFrame> |
sendBinary(ByteBuffer byteBuffer,
boolean b) |
Future<org.glassfish.tyrus.websockets.DataFrame> |
sendPing(ByteBuffer byteBuffer) |
Future<org.glassfish.tyrus.websockets.DataFrame> |
sendPong(ByteBuffer byteBuffer) |
Future<org.glassfish.tyrus.websockets.DataFrame> |
sendText(String text) |
Future<org.glassfish.tyrus.websockets.DataFrame> |
sendText(String fragment,
boolean isLast) |
void |
setWriteTimeout(long timeoutMs) |
public TyrusRemoteEndpoint(org.glassfish.tyrus.websockets.WebSocket socket)
socket - to be used for sending messages.public static TyrusRemoteEndpoint get(org.glassfish.tyrus.websockets.WebSocket socket)
TyrusRemoteEndpoint instance. Used on server side for managing multiple connected clients.socket - WebSocket instance used for lookup.TyrusRemoteEndpoint.public static void remove(org.glassfish.tyrus.websockets.WebSocket socket)
socket - socket instance to be removed.public Future<org.glassfish.tyrus.websockets.DataFrame> sendText(String text) throws IOException
sendText in class org.glassfish.tyrus.spi.SPIRemoteEndpointIOExceptionpublic Future<org.glassfish.tyrus.websockets.DataFrame> sendBinary(ByteBuffer byteBuffer) throws IOException
sendBinary in class org.glassfish.tyrus.spi.SPIRemoteEndpointIOExceptionpublic Future<org.glassfish.tyrus.websockets.DataFrame> sendText(String fragment, boolean isLast) throws IOException
sendText in class org.glassfish.tyrus.spi.SPIRemoteEndpointIOExceptionpublic Future<org.glassfish.tyrus.websockets.DataFrame> sendBinary(ByteBuffer byteBuffer, boolean b) throws IOException
sendBinary in class org.glassfish.tyrus.spi.SPIRemoteEndpointIOExceptionpublic Future<org.glassfish.tyrus.websockets.DataFrame> sendPing(ByteBuffer byteBuffer)
sendPing in class org.glassfish.tyrus.spi.SPIRemoteEndpointpublic Future<org.glassfish.tyrus.websockets.DataFrame> sendPong(ByteBuffer byteBuffer)
sendPong in class org.glassfish.tyrus.spi.SPIRemoteEndpointpublic void close(javax.websocket.CloseReason closeReason)
close in class org.glassfish.tyrus.spi.SPIRemoteEndpointpublic void setWriteTimeout(long timeoutMs)
setWriteTimeout in class org.glassfish.tyrus.spi.SPIRemoteEndpointCopyright © 2012-2013. All Rights Reserved.