Uses of Interface
jdk.incubator.http.WebSocket
-
Packages that use WebSocket Package Description jdk.incubator.http High level HTTP and WebSocket APIjdk.incubator.http.internal.websocket -
-
Uses of WebSocket in jdk.incubator.http
Methods in jdk.incubator.http that return types with arguments of type WebSocket Modifier and Type Method Description java.util.concurrent.CompletableFuture<WebSocket>
WebSocket.Builder. buildAsync()
Builds aWebSocket
.java.util.concurrent.CompletableFuture<WebSocket>
WebSocket. sendBinary(java.nio.ByteBuffer message, boolean isLast)
Sends a Binary message with bytes from the givenByteBuffer
.java.util.concurrent.CompletableFuture<WebSocket>
WebSocket. sendClose()
Sends an empty Close message.java.util.concurrent.CompletableFuture<WebSocket>
WebSocket. sendClose(int statusCode, java.lang.String reason)
Sends a Close message with the given status code and the reason.java.util.concurrent.CompletableFuture<WebSocket>
WebSocket. sendPing(java.nio.ByteBuffer message)
Sends a Ping message with bytes from the given ByteBuffer.java.util.concurrent.CompletableFuture<WebSocket>
WebSocket. sendPong(java.nio.ByteBuffer message)
Sends a Pong message with bytes from the given ByteBuffer.default java.util.concurrent.CompletableFuture<WebSocket>
WebSocket. sendText(java.lang.CharSequence message)
Sends a whole Text message with characters from the givenCharSequence
.java.util.concurrent.CompletableFuture<WebSocket>
WebSocket. sendText(java.lang.CharSequence message, boolean isLast)
Sends a Text message with characters from the givenCharSequence
.Methods in jdk.incubator.http with parameters of type WebSocket Modifier and Type Method Description default java.util.concurrent.CompletionStage<?>
WebSocket.Listener. onBinary(WebSocket webSocket, java.nio.ByteBuffer message, WebSocket.MessagePart part)
Receives a Binary message.default java.util.concurrent.CompletionStage<?>
WebSocket.Listener. onClose(WebSocket webSocket, int statusCode, java.lang.String reason)
Receives a Close message.default void
WebSocket.Listener. onError(WebSocket webSocket, java.lang.Throwable error)
Notifies an I/O or protocol error has occurred.default void
WebSocket.Listener. onOpen(WebSocket webSocket)
Notifies theListener
that it is connected to the providedWebSocket
.default java.util.concurrent.CompletionStage<?>
WebSocket.Listener. onPing(WebSocket webSocket, java.nio.ByteBuffer message)
Receives a Ping message.default java.util.concurrent.CompletionStage<?>
WebSocket.Listener. onPong(WebSocket webSocket, java.nio.ByteBuffer message)
Receives a Pong message.default java.util.concurrent.CompletionStage<?>
WebSocket.Listener. onText(WebSocket webSocket, java.lang.CharSequence message, WebSocket.MessagePart part)
Receives a Text message. -
Uses of WebSocket in jdk.incubator.http.internal.websocket
Methods in jdk.incubator.http.internal.websocket that return types with arguments of type WebSocket Modifier and Type Method Description java.util.concurrent.CompletableFuture<WebSocket>
BuilderImpl. buildAsync()
-