Uses of Interface
jdk.incubator.http.WebSocket
-
Packages that use WebSocket 软件包 描述 jdk.incubator.http 高级HTTP和WebSocket API -
-
Uses of WebSocket in jdk.incubator.http
Methods in jdk.incubator.http that return types with arguments of type WebSocket Modifier and Type 方法 描述 CompletableFuture<WebSocket>
WebSocket.Builder. buildAsync()
构建一个WebSocket
。CompletableFuture<WebSocket>
WebSocket. sendBinary(ByteBuffer message, boolean isLast)
从给定的ByteBuffer
发送带有字节的二进制消息。CompletableFuture<WebSocket>
WebSocket. sendClose(int statusCode, String reason)
发送关闭消息与给定的状态代码和原因。CompletableFuture<WebSocket>
WebSocket. sendPing(ByteBuffer message)
从给定的ByteBuffer发送带有字节的Ping消息。CompletableFuture<WebSocket>
WebSocket. sendPong(ByteBuffer message)
从给定的ByteBuffer发送带有字节的Pong消息。CompletableFuture<WebSocket>
WebSocket. sendText(CharSequence message, boolean isLast)
从给定的CharSequence
发送带有字符的CharSequence
。Methods in jdk.incubator.http with parameters of type WebSocket Modifier and Type 方法 描述 default CompletionStage<?>
WebSocket.Listener. onBinary(WebSocket webSocket, ByteBuffer message, WebSocket.MessagePart part)
接收二进制消息。default CompletionStage<?>
WebSocket.Listener. onClose(WebSocket webSocket, int statusCode, String reason)
接收到一条关闭消息。default void
WebSocket.Listener. onError(WebSocket webSocket, Throwable error)
通知发生I / O或协议错误。default void
WebSocket.Listener. onOpen(WebSocket webSocket)
通知Listener
它连接到提供的WebSocket
。default CompletionStage<?>
WebSocket.Listener. onPing(WebSocket webSocket, ByteBuffer message)
接收Ping消息。default CompletionStage<?>
WebSocket.Listener. onPong(WebSocket webSocket, ByteBuffer message)
收到乒乓消息。default CompletionStage<?>
WebSocket.Listener. onText(WebSocket webSocket, CharSequence message, WebSocket.MessagePart part)
接收短信。
-