Uses of Class
io.undertow.websockets.core.WebSocketChannel
Packages that use WebSocketChannel
Package
Description
-
Uses of WebSocketChannel in io.undertow.websockets
Methods in io.undertow.websockets that return types with arguments of type WebSocketChannelMethods in io.undertow.websockets with parameters of type WebSocketChannelModifier and TypeMethodDescriptionvoidWebSocketConnectionCallback.onConnect(WebSocketHttpExchange exchange, WebSocketChannel channel) Is called once the WebSocket connection is established, which means the handshake was successful. -
Uses of WebSocketChannel in io.undertow.websockets.client
Methods in io.undertow.websockets.client that return WebSocketChannelModifier and TypeMethodDescriptionWebSocket13ClientHandshake.createChannel(org.xnio.StreamConnection channel, String wsUri, ByteBufferPool bufferPool, org.xnio.OptionMap options) abstract WebSocketChannelWebSocketClientHandshake.createChannel(org.xnio.StreamConnection channel, String wsUri, ByteBufferPool bufferPool, org.xnio.OptionMap options) Methods in io.undertow.websockets.client that return types with arguments of type WebSocketChannelModifier and TypeMethodDescriptionstatic org.xnio.IoFuture<WebSocketChannel>WebSocketClient.connect(org.xnio.XnioWorker worker, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version) Deprecated.static org.xnio.IoFuture<WebSocketChannel>WebSocketClient.connect(org.xnio.XnioWorker worker, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version, WebSocketClientNegotiation clientNegotiation) Deprecated.static org.xnio.IoFuture<WebSocketChannel>WebSocketClient.connect(org.xnio.XnioWorker worker, org.xnio.ssl.XnioSsl ssl, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, InetSocketAddress bindAddress, URI uri, WebSocketVersion version, WebSocketClientNegotiation clientNegotiation, Set<ExtensionHandshake> clientExtensions) Deprecated.static org.xnio.IoFuture<WebSocketChannel>WebSocketClient.connect(org.xnio.XnioWorker worker, org.xnio.ssl.XnioSsl ssl, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version) Deprecated.static org.xnio.IoFuture<WebSocketChannel>WebSocketClient.connect(org.xnio.XnioWorker worker, org.xnio.ssl.XnioSsl ssl, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version, WebSocketClientNegotiation clientNegotiation) Deprecated.static org.xnio.IoFuture<WebSocketChannel>WebSocketClient.connect(org.xnio.XnioWorker worker, org.xnio.ssl.XnioSsl ssl, ByteBufferPool bufferPool, org.xnio.OptionMap optionMap, URI uri, WebSocketVersion version, WebSocketClientNegotiation clientNegotiation, Set<ExtensionHandshake> clientExtensions) Deprecated.org.xnio.IoFuture<WebSocketChannel>WebSocketClient.ConnectionBuilder.connect() -
Uses of WebSocketChannel in io.undertow.websockets.core
Methods in io.undertow.websockets.core that return WebSocketChannelModifier and TypeMethodDescriptionprotected WebSocketChannelStreamSourceFrameChannel.getFramedChannel()StreamSinkFrameChannel.getWebSocketChannel()StreamSourceFrameChannel.getWebSocketChannel()Methods in io.undertow.websockets.core that return types with arguments of type WebSocketChannelModifier and TypeMethodDescriptionWebSocketChannel.getPeerConnections()Returns all 'peer' web socket connections that were created from the same endpoint.protected Collection<AbstractFramedStreamSourceChannel<WebSocketChannel,StreamSourceFrameChannel, StreamSinkFrameChannel>> WebSocketChannel.getReceivers()Methods in io.undertow.websockets.core with parameters of type WebSocketChannelModifier and TypeMethodDescriptionvoidWebSocketCallback.complete(WebSocketChannel channel, T context) static voidWebSocketUtils.echoFrame(WebSocketChannel channel, StreamSourceFrameChannel ws) Echo back the frame to the sendervoidAbstractReceiveListener.handleEvent(WebSocketChannel channel) protected voidAbstractReceiveListener.onBinary(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel) protected voidAbstractReceiveListener.onClose(WebSocketChannel webSocketChannel, StreamSourceFrameChannel channel) protected voidAbstractReceiveListener.onCloseMessage(CloseMessage cm, WebSocketChannel channel) protected voidAbstractReceiveListener.onError(WebSocketChannel channel, Throwable error) voidWebSocketCallback.onError(WebSocketChannel channel, T context, Throwable throwable) protected voidAbstractReceiveListener.onFullBinaryMessage(WebSocketChannel channel, BufferedBinaryMessage message) protected voidAbstractReceiveListener.onFullCloseMessage(WebSocketChannel channel, BufferedBinaryMessage message) protected voidAbstractReceiveListener.onFullPingMessage(WebSocketChannel channel, BufferedBinaryMessage message) protected voidAbstractReceiveListener.onFullPongMessage(WebSocketChannel channel, BufferedBinaryMessage message) protected voidAbstractReceiveListener.onFullTextMessage(WebSocketChannel channel, BufferedTextMessage message) protected voidAbstractReceiveListener.onPing(WebSocketChannel webSocketChannel, StreamSourceFrameChannel channel) protected voidAbstractReceiveListener.onPong(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel) protected voidAbstractReceiveListener.onText(WebSocketChannel webSocketChannel, StreamSourceFrameChannel messageChannel) static voidWebSockets.sendBinary(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete binary message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static voidWebSockets.sendBinary(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete binary message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> voidWebSockets.sendBinary(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete binary message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> voidWebSockets.sendBinary(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete binary message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static voidWebSockets.sendBinary(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete binary message, invoking the callback when completestatic voidWebSockets.sendBinary(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete binary message, invoking the callback when completestatic <T> voidWebSockets.sendBinary(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete binary message, invoking the callback when completestatic <T> voidWebSockets.sendBinary(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete binary message, invoking the callback when completestatic voidWebSockets.sendBinary(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete binary message, invoking the callback when completestatic voidWebSockets.sendBinary(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete binary message, invoking the callback when completestatic <T> voidWebSockets.sendBinary(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete binary message, invoking the callback when completestatic <T> voidWebSockets.sendBinary(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete binary message, invoking the callback when completestatic voidWebSockets.sendBinaryBlocking(PooledByteBuffer pooledData, WebSocketChannel wsChannel) Sends a complete binary message using blocking IO Automatically frees the pooled byte buffer when done.static voidWebSockets.sendBinaryBlocking(ByteBuffer[] data, WebSocketChannel wsChannel) Sends a complete binary message using blocking IOstatic voidWebSockets.sendBinaryBlocking(ByteBuffer data, WebSocketChannel wsChannel) Sends a complete binary message using blocking IOstatic voidWebSockets.sendClose(int code, String reason, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete close message, invoking the callback when completestatic <T> voidWebSockets.sendClose(int code, String reason, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete close message, invoking the callback when completestatic voidWebSockets.sendClose(CloseMessage closeMessage, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete close message, invoking the callback when completestatic <T> voidWebSockets.sendClose(CloseMessage closeMessage, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete close message, invoking the callback when completestatic voidWebSockets.sendClose(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete close message, invoking the callback when completestatic <T> voidWebSockets.sendClose(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete close message, invoking the callback when completestatic voidWebSockets.sendClose(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete close message, invoking the callback when completestatic <T> voidWebSockets.sendClose(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete close message, invoking the callback when completestatic voidWebSockets.sendCloseBlocking(int code, String reason, WebSocketChannel wsChannel) Sends a complete close message, invoking the callback when completestatic voidWebSockets.sendCloseBlocking(CloseMessage closeMessage, WebSocketChannel wsChannel) Sends a complete close message, invoking the callback when completestatic voidWebSockets.sendCloseBlocking(ByteBuffer[] data, WebSocketChannel wsChannel) Sends a complete close message, invoking the callback when completestatic voidWebSockets.sendCloseBlocking(ByteBuffer data, WebSocketChannel wsChannel) Sends a complete close message, invoking the callback when completestatic voidWebSockets.sendPing(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete ping message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static voidWebSockets.sendPing(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete ping message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> voidWebSockets.sendPing(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete ping message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> voidWebSockets.sendPing(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete ping message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static voidWebSockets.sendPing(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete ping message, invoking the callback when completestatic voidWebSockets.sendPing(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete ping message, invoking the callback when completestatic <T> voidWebSockets.sendPing(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete ping message, invoking the callback when completestatic <T> voidWebSockets.sendPing(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete ping message, invoking the callback when completestatic voidWebSockets.sendPing(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete ping message, invoking the callback when completestatic voidWebSockets.sendPing(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete ping message, invoking the callback when completestatic <T> voidWebSockets.sendPing(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete ping message, invoking the callback when completestatic <T> voidWebSockets.sendPing(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete ping message, invoking the callback when completestatic voidWebSockets.sendPingBlocking(PooledByteBuffer pooledData, WebSocketChannel wsChannel) Sends a complete ping message using blocking IO Automatically frees the pooled byte buffer when done.static voidWebSockets.sendPingBlocking(ByteBuffer[] data, WebSocketChannel wsChannel) Sends a complete ping message using blocking IOstatic voidWebSockets.sendPingBlocking(ByteBuffer data, WebSocketChannel wsChannel) Sends a complete ping message using blocking IOstatic voidWebSockets.sendPong(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete pong message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static voidWebSockets.sendPong(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete pong message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> voidWebSockets.sendPong(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete pong message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> voidWebSockets.sendPong(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete pong message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static voidWebSockets.sendPong(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete pong message, invoking the callback when completestatic voidWebSockets.sendPong(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete pong message, invoking the callback when completestatic <T> voidWebSockets.sendPong(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete pong message, invoking the callback when completestatic <T> voidWebSockets.sendPong(ByteBuffer[] data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete pong message, invoking the callback when completestatic voidWebSockets.sendPong(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete pong message, invoking the callback when completestatic voidWebSockets.sendPong(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete pong message, invoking the callback when completestatic <T> voidWebSockets.sendPong(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete pong message, invoking the callback when completestatic <T> voidWebSockets.sendPong(ByteBuffer data, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete pong message, invoking the callback when completestatic voidWebSockets.sendPongBlocking(PooledByteBuffer pooledData, WebSocketChannel wsChannel) Sends a complete pong message using blocking IO Automatically frees the pooled byte buffer when done.static voidWebSockets.sendPongBlocking(ByteBuffer[] data, WebSocketChannel wsChannel) Sends a complete pong message using blocking IOstatic voidWebSockets.sendPongBlocking(ByteBuffer data, WebSocketChannel wsChannel) Sends a complete pong message using blocking IOstatic voidWebSockets.sendText(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static voidWebSockets.sendText(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> voidWebSockets.sendText(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static <T> voidWebSockets.sendText(PooledByteBuffer pooledData, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static voidWebSockets.sendText(String message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete text message, invoking the callback when completestatic voidWebSockets.sendText(String message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete text message, invoking the callback when completestatic <T> voidWebSockets.sendText(String message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete text message, invoking the callback when completestatic <T> voidWebSockets.sendText(String message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete text message, invoking the callback when completestatic voidWebSockets.sendText(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback) Sends a complete text message, invoking the callback when completestatic voidWebSockets.sendText(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<Void> callback, long timeoutmillis) Sends a complete text message, invoking the callback when completestatic <T> voidWebSockets.sendText(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context) Sends a complete text message, invoking the callback when completestatic <T> voidWebSockets.sendText(ByteBuffer message, WebSocketChannel wsChannel, WebSocketCallback<T> callback, T context, long timeoutmillis) Sends a complete text message, invoking the callback when completestatic voidWebSockets.sendTextBlocking(PooledByteBuffer pooledData, WebSocketChannel wsChannel) Sends a complete text message, invoking the callback when complete Automatically frees the pooled byte buffer when done.static voidWebSockets.sendTextBlocking(String message, WebSocketChannel wsChannel) Sends a complete text message, invoking the callback when completestatic voidWebSockets.sendTextBlocking(ByteBuffer message, WebSocketChannel wsChannel) Sends a complete text message, invoking the callback when completeConstructors in io.undertow.websockets.core with parameters of type WebSocketChannelModifierConstructorDescriptionprotectedStreamSinkFrameChannel(WebSocketChannel channel, WebSocketFrameType type) protectedStreamSourceFrameChannel(WebSocketChannel wsChannel, WebSocketFrameType type, int rsv, boolean finalFragment, PooledByteBuffer pooled, long frameLength, Masker masker, ChannelFunction... functions) protectedStreamSourceFrameChannel(WebSocketChannel wsChannel, WebSocketFrameType type, PooledByteBuffer pooled, long frameLength) Constructor parameters in io.undertow.websockets.core with type arguments of type WebSocketChannelModifierConstructorDescriptionprotectedWebSocketChannel(org.xnio.StreamConnection connectedStreamChannel, ByteBufferPool bufferPool, WebSocketVersion version, String wsUrl, String subProtocol, boolean client, boolean extensionsSupported, ExtensionFunction extensionFunction, Set<WebSocketChannel> peerConnections, org.xnio.OptionMap options) Create a newWebSocketChannel8 -
Uses of WebSocketChannel in io.undertow.websockets.core.protocol
Methods in io.undertow.websockets.core.protocol that return WebSocketChannelModifier and TypeMethodDescriptionabstract WebSocketChannelHandshake.createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Create theWebSocketChannelfrom theWebSocketHttpExchange -
Uses of WebSocketChannel in io.undertow.websockets.core.protocol.version07
Subclasses of WebSocketChannel in io.undertow.websockets.core.protocol.version07Methods in io.undertow.websockets.core.protocol.version07 that return WebSocketChannelModifier and TypeMethodDescriptionHybi07Handshake.createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Constructor parameters in io.undertow.websockets.core.protocol.version07 with type arguments of type WebSocketChannelModifierConstructorDescriptionWebSocket07Channel(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, String wsUrl, String subProtocol, boolean client, boolean allowExtensions, ExtensionFunction extensionFunction, Set<WebSocketChannel> openConnections, org.xnio.OptionMap options) Create a newWebSocket07Channel -
Uses of WebSocketChannel in io.undertow.websockets.core.protocol.version08
Subclasses of WebSocketChannel in io.undertow.websockets.core.protocol.version08Methods in io.undertow.websockets.core.protocol.version08 that return WebSocketChannelModifier and TypeMethodDescriptionHybi08Handshake.createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Constructor parameters in io.undertow.websockets.core.protocol.version08 with type arguments of type WebSocketChannelModifierConstructorDescriptionWebSocket08Channel(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, String wsUrl, String subProtocols, boolean client, boolean allowExtensions, ExtensionFunction extensionFunction, Set<WebSocketChannel> openConnections, org.xnio.OptionMap options) -
Uses of WebSocketChannel in io.undertow.websockets.core.protocol.version13
Subclasses of WebSocketChannel in io.undertow.websockets.core.protocol.version13Modifier and TypeClassDescriptionclassA WebSocketChannel that handles version 13Methods in io.undertow.websockets.core.protocol.version13 that return WebSocketChannelModifier and TypeMethodDescriptionHybi13Handshake.createChannel(WebSocketHttpExchange exchange, org.xnio.StreamConnection channel, ByteBufferPool pool) Constructor parameters in io.undertow.websockets.core.protocol.version13 with type arguments of type WebSocketChannelModifierConstructorDescriptionWebSocket13Channel(org.xnio.StreamConnection channel, ByteBufferPool bufferPool, String wsUrl, String subProtocols, boolean client, boolean allowExtensions, ExtensionFunction extensionFunction, Set<WebSocketChannel> openConnections, org.xnio.OptionMap options) -
Uses of WebSocketChannel in io.undertow.websockets.spi
Methods in io.undertow.websockets.spi that return types with arguments of type WebSocketChannelModifier and TypeMethodDescriptionAsyncWebSocketHttpServerExchange.getPeerConnections()WebSocketHttpExchange.getPeerConnections()Constructor parameters in io.undertow.websockets.spi with type arguments of type WebSocketChannelModifierConstructorDescriptionAsyncWebSocketHttpServerExchange(HttpServerExchange exchange, Set<WebSocketChannel> peerConnections) BlockingWebSocketHttpServerExchange(HttpServerExchange exchange, Set<WebSocketChannel> peerConnections)