public class WebSockets extends Object
| Modifier and Type | Method and Description |
|---|---|
static ByteBuffer |
mergeBuffers(ByteBuffer... payload) |
static void |
sendBinary(ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete text message, invoking the callback when complete
|
static void |
sendBinary(ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback,
long timeoutmillis)
Sends a complete text message, invoking the callback when complete
|
static void |
sendBinary(ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete text message, invoking the callback when complete
|
static void |
sendBinary(ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback,
long timeoutmillis)
Sends a complete text message, invoking the callback when complete
|
static void |
sendBinaryBlocking(ByteBuffer[] data,
WebSocketChannel wsChannel)
Sends a complete binary message using blocking IO
|
static void |
sendBinaryBlocking(ByteBuffer data,
WebSocketChannel wsChannel)
Sends a complete binary message using blocking IO
|
static void |
sendClose(ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete close message, invoking the callback when complete
|
static void |
sendClose(ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete close message, invoking the callback when complete
|
static void |
sendClose(CloseMessage closeMessage,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete close message, invoking the callback when complete
|
static void |
sendClose(int code,
String reason,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete close message, invoking the callback when complete
|
static void |
sendCloseBlocking(ByteBuffer[] data,
WebSocketChannel wsChannel)
Sends a complete close message, invoking the callback when complete
|
static void |
sendCloseBlocking(ByteBuffer data,
WebSocketChannel wsChannel)
Sends a complete close message, invoking the callback when complete
|
static void |
sendCloseBlocking(CloseMessage closeMessage,
WebSocketChannel wsChannel)
Sends a complete close message, invoking the callback when complete
|
static void |
sendCloseBlocking(int code,
String reason,
WebSocketChannel wsChannel)
Sends a complete close message, invoking the callback when complete
|
static void |
sendPing(ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete ping message, invoking the callback when complete
|
static void |
sendPing(ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback,
long timeoutmillis)
Sends a complete ping message, invoking the callback when complete
|
static void |
sendPing(ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete ping message, invoking the callback when complete
|
static void |
sendPing(ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback,
long timeoutmillis)
Sends a complete ping message, invoking the callback when complete
|
static void |
sendPingBlocking(ByteBuffer[] data,
WebSocketChannel wsChannel)
Sends a complete ping message using blocking IO
|
static void |
sendPingBlocking(ByteBuffer data,
WebSocketChannel wsChannel)
Sends a complete ping message using blocking IO
|
static void |
sendPong(ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete pong message, invoking the callback when complete
|
static void |
sendPong(ByteBuffer[] data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback,
long timeoutmillis)
Sends a complete pong message, invoking the callback when complete
|
static void |
sendPong(ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete pong message, invoking the callback when complete
|
static void |
sendPong(ByteBuffer data,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback,
long timeoutmillis)
Sends a complete pong message, invoking the callback when complete
|
static void |
sendPongBlocking(ByteBuffer[] data,
WebSocketChannel wsChannel)
Sends a complete pong message using blocking IO
|
static void |
sendPongBlocking(ByteBuffer data,
WebSocketChannel wsChannel)
Sends a complete pong message using blocking IO
|
static void |
sendText(ByteBuffer message,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete text message, invoking the callback when complete
|
static void |
sendText(ByteBuffer message,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback,
long timeoutmillis)
Sends a complete text message, invoking the callback when complete
|
static void |
sendText(String message,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
Sends a complete text message, invoking the callback when complete
|
static void |
sendText(String message,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback,
long timeoutmillis)
Sends a complete text message, invoking the callback when complete
|
static void |
sendTextBlocking(ByteBuffer message,
WebSocketChannel wsChannel)
Sends a complete text message, invoking the callback when complete
|
static void |
sendTextBlocking(String message,
WebSocketChannel wsChannel)
Sends a complete text message, invoking the callback when complete
|
public static void sendText(String message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
message - wsChannel - callback - public static void sendText(String message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis)
message - wsChannel - callback - timeoutmillis - the timeout in millisecondspublic static void sendText(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
message - wsChannel - callback - public static void sendText(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis)
message - wsChannel - callback - public static void sendTextBlocking(String message, WebSocketChannel wsChannel) throws IOException
message - wsChannel - IOExceptionpublic static void sendTextBlocking(ByteBuffer message, WebSocketChannel wsChannel) throws IOException
message - wsChannel - IOExceptionpublic static void sendPing(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
data - wsChannel - callback - public static void sendPing(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis)
data - wsChannel - callback - public static void sendPing(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
data - wsChannel - callback - public static void sendPing(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis)
data - wsChannel - callback - public static void sendPingBlocking(ByteBuffer data, WebSocketChannel wsChannel) throws IOException
data - wsChannel - IOExceptionpublic static void sendPingBlocking(ByteBuffer[] data, WebSocketChannel wsChannel) throws IOException
data - wsChannel - IOExceptionpublic static void sendPong(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
data - wsChannel - callback - public static void sendPong(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis)
data - wsChannel - callback - public static void sendPong(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
data - wsChannel - callback - public static void sendPong(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis)
data - wsChannel - callback - public static void sendPongBlocking(ByteBuffer data, WebSocketChannel wsChannel) throws IOException
data - wsChannel - IOExceptionpublic static void sendPongBlocking(ByteBuffer[] data, WebSocketChannel wsChannel) throws IOException
data - wsChannel - IOExceptionpublic static void sendBinary(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
data - wsChannel - callback - public static void sendBinary(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis)
data - wsChannel - callback - public static void sendBinary(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
data - wsChannel - callback - public static void sendBinary(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis)
data - wsChannel - callback - public static void sendBinaryBlocking(ByteBuffer data, WebSocketChannel wsChannel) throws IOException
data - wsChannel - IOExceptionpublic static void sendBinaryBlocking(ByteBuffer[] data, WebSocketChannel wsChannel) throws IOException
data - wsChannel - IOExceptionpublic static void sendClose(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
data - wsChannel - callback - public static void sendClose(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
data - wsChannel - callback - public static void sendClose(int code,
String reason,
WebSocketChannel wsChannel,
WebSocketCallback<Void> callback)
code - The close codewsChannel - callback - public static void sendClose(CloseMessage closeMessage, WebSocketChannel wsChannel, WebSocketCallback<Void> callback)
closeMessage - The close messagewsChannel - callback - public static void sendCloseBlocking(CloseMessage closeMessage, WebSocketChannel wsChannel) throws IOException
closeMessage - the close messagewsChannel - IOExceptionpublic static void sendCloseBlocking(int code,
String reason,
WebSocketChannel wsChannel)
throws IOException
code - wsChannel - IOExceptionpublic static void sendCloseBlocking(ByteBuffer data, WebSocketChannel wsChannel) throws IOException
data - wsChannel - IOExceptionpublic static void sendCloseBlocking(ByteBuffer[] data, WebSocketChannel wsChannel) throws IOException
data - wsChannel - IOExceptionpublic static ByteBuffer mergeBuffers(ByteBuffer... payload)
Copyright © 2015 JBoss by Red Hat. All rights reserved.