| Modifier and Type | Field and Description |
|---|---|
| private final HttpClient | |
| private final Collection | |
| private WebSocket. | |
| private final Optional | |
| private final Collection | |
| private Duration | |
| private URI |
| Access | Constructor and Description |
|---|---|
| public | |
| private | BuilderImpl(HttpClient client, URI uri, WebSocket.
|
| Modifier and Type | Method and Description |
|---|---|
| public CompletableFuture | buildAsync(URI uri, WebSocket.
Implements java. Builds a |
| public WebSocket. | connectTimeout(Duration timeout)
Implements java. Sets a timeout for establishing a WebSocket connection. |
| pack-priv HttpClient | |
| pack-priv Duration | |
| pack-priv Collection | |
| pack-priv WebSocket. | |
| pack-priv Optional | |
| pack-priv Collection | |
| pack-priv URI | |
| public WebSocket. | header(String name, String value)
Implements java. Adds the given name-value pair to the list of additional HTTP headers sent during the opening handshake. |
| private BuilderImpl | |
| public WebSocket. | subprotocols(String mostPreferred, String... lesserPreferred)
Implements java. Sets a request for the given subprotocols. |
| client | back to summary |
|---|---|
| private final HttpClient client | |
| headers | back to summary |
|---|---|
| private final Collection<Pair<String, String>> headers | |
| listener | back to summary |
|---|---|
| private WebSocket. | |
| proxySelector | back to summary |
|---|---|
| private final Optional<ProxySelector> proxySelector | |
| subprotocols | back to summary |
|---|---|
| private final Collection<String> subprotocols | |
| timeout | back to summary |
|---|---|
| private Duration timeout | |
| uri | back to summary |
|---|---|
| private URI uri | |
| BuilderImpl | back to summary |
|---|---|
| public BuilderImpl(HttpClient client, ProxySelector proxySelector) | |
| BuilderImpl | back to summary |
|---|---|
| private BuilderImpl(HttpClient client, URI uri, WebSocket. | |
| buildAsync | back to summary |
|---|---|
| public CompletableFuture Implements java. Doc from java. Builds a Returns a
| |
| connectTimeout | back to summary |
|---|---|
| public WebSocket. Implements java. Doc from java. Sets a timeout for establishing a WebSocket connection. If the connection is not established within the specified
duration then building of the
| |
| getClient | back to summary |
|---|---|
| pack-priv HttpClient getClient() | |
| getConnectTimeout | back to summary |
|---|---|
| pack-priv Duration getConnectTimeout() | |
| getHeaders | back to summary |
|---|---|
| pack-priv Collection | |
| getListener | back to summary |
|---|---|
| pack-priv WebSocket. | |
| getProxySelector | back to summary |
|---|---|
| pack-priv Optional | |
| getSubprotocols | back to summary |
|---|---|
| pack-priv Collection | |
| getUri | back to summary |
|---|---|
| pack-priv URI getUri() | |
| header | back to summary |
|---|---|
| public WebSocket. Implements java. Doc from java. Adds the given name-value pair to the list of additional HTTP headers sent during the opening handshake. Headers defined in the WebSocket Protocol are illegal. If this method is not invoked, no additional HTTP headers will be sent.
| |
| immutableCopy | back to summary |
|---|---|
| private BuilderImpl immutableCopy() | |
| subprotocols | back to summary |
|---|---|
| public WebSocket. Implements java. Doc from java. Sets a request for the given subprotocols. After the Subprotocols are specified in the order of preference. The most preferred subprotocol is specified first. If there are any additional subprotocols they are enumerated from the most preferred to the least preferred. Subprotocols not conforming to the syntax of subprotocol identifiers are illegal. If this method is not invoked then no subprotocols will be requested.
| |