Uses of Interface
java.net.http.WebSocket.Builder
Packages that use WebSocket.Builder
-
Uses of WebSocket.Builder in java.net.http
Methods in java.net.http that return WebSocket.BuilderModifier and TypeMethodDescriptionWebSocket.Builder.connectTimeout
(Duration timeout) Sets a timeout for establishing a WebSocket connection.Adds the given name-value pair to the list of additional HTTP headers sent during the opening handshake.HttpClient.newWebSocketBuilder()
Creates a newWebSocket
builder (optional operation).WebSocket.Builder.subprotocols
(String mostPreferred, String... lesserPreferred) Sets a request for the given subprotocols.