インタフェースjava.net.http.WebSocket.Builderの
使用
-
WebSocket.Builderを使用するパッケージ パッケージ 説明 java.net.http HTTPクライアントおよびWebSocket API -
-
java.net.httpでのWebSocket.Builderの使用
WebSocket.Builderを戻すjava.net.httpのメソッド 修飾子と型 メソッド 説明 WebSocket.Builder
WebSocket.Builder. connectTimeout(Duration timeout)
WebSocket接続を確立するためのタイムアウトを設定します。WebSocket.Builder
WebSocket.Builder. header(String name, String value)
指定された名前と値のペアを、オープニング・ハンドシェイク中に送信された追加のHTTPヘッダーのリストに追加します。WebSocket.Builder
HttpClient. newWebSocketBuilder()
新しいWebSocket
ビルダー(オプションの操作)を作成します。WebSocket.Builder
WebSocket.Builder. subprotocols(String mostPreferred, String... lesserPreferred)
指定されたサブ・プロトコルのリクエストを設定します。
-