WebSocketClient.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Consumer | |
| private ByteBufferPool | |
| private static final int | |
| private static final Log | |
| private final XnioWorker |
| Access | Constructor and Description |
|---|---|
| public | UndertowWebSocketClient(XnioWorker
the Xnio worker worker)Constructor with the |
| public | UndertowWebSocketClient(XnioWorker
the Xnio worker to use to create worker, Consumer<WebSocketClient.ConnectionBuilder'sa consumer to configure builderConsumerConnectionBuilder'sAlternate constructor providing additional control over the
|
| public | UndertowWebSocketClient(XnioWorker
the Xnio worker to use to create worker, ByteBufferPool ConnectionBuilder'sthe ByteBufferPool to use to create byteBufferPool, Consumer<WebSocketClient.ConnectionBuilder'sa consumer to configure builderConsumerConnectionBuilder'sAlternate constructor providing additional control over the
|
| Modifier and Type | Method and Description |
|---|---|
| protected WebSocketClient. | |
| private HandshakeInfo | |
| public Mono | execute(URI
the handshake url url, WebSocketHandler the handler of the WebSocket session handler)Implements org. Execute a handshake request to the given url and handle the resulting WebSocket session with the given handler. |
| public Mono | execute(URI
the handshake url url, HttpHeaders custom headers for the handshake request headers, WebSocketHandler the handler of the WebSocket session handler)Implements org. A variant of |
| private Mono | |
| public ByteBufferPool | Returns: the byte buffer poolReturn the |
| public Consumer | |
| public XnioWorker | |
| private void | handleChannel(URI url, WebSocketHandler handler, Sinks.
|
| public void | setByteBufferPool(ByteBufferPool byteBufferPool)
Set the |
| builderConsumer | back to summary |
|---|---|
| private final Consumer<WebSocketClient. | |
| byteBufferPool | back to summary |
|---|---|
| private ByteBufferPool byteBufferPool | |
| DEFAULT_POOL_BUFFER_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_POOL_BUFFER_SIZE | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| worker | back to summary |
|---|---|
| private final XnioWorker worker | |
| UndertowWebSocketClient | back to summary |
|---|---|
| public UndertowWebSocketClient(XnioWorker worker) Constructor with the
| |
| UndertowWebSocketClient | back to summary |
|---|---|
| public UndertowWebSocketClient(XnioWorker worker, Consumer<WebSocketClient. Alternate constructor providing additional control over the
| |
| UndertowWebSocketClient | back to summary |
|---|---|
| public UndertowWebSocketClient(XnioWorker worker, ByteBufferPool byteBufferPool, Consumer<WebSocketClient. Alternate constructor providing additional control over the
| |
| createConnectionBuilder | back to summary |
|---|---|
| protected WebSocketClient. Create a The default implementation creates a builder with the configured
| |
| createHandshakeInfo | back to summary |
|---|---|
| private HandshakeInfo createHandshakeInfo(URI url, UndertowWebSocketClient. | |
| execute | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Execute a handshake request to the given url and handle the resulting WebSocket session with the given handler.
| |
| execute | back to summary |
|---|---|
| public Mono Implements org. Doc from org. A variant of
| |
| executeInternal | back to summary |
|---|---|
| private Mono | |
| getByteBufferPool | back to summary |
|---|---|
| public ByteBufferPool getByteBufferPool() Return the
| |
| getConnectionBuilderConsumer | back to summary |
|---|---|
| public Consumer Return the configured | |
| getXnioWorker | back to summary |
|---|---|
| public XnioWorker getXnioWorker() Return the configured | |
| handleChannel | back to summary |
|---|---|
| private void handleChannel(URI url, WebSocketHandler handler, Sinks. | |
| setByteBufferPool | back to summary |
|---|---|
| public void setByteBufferPool(ByteBufferPool byteBufferPool) Set the By default an indirect
| |
| Modifier and Type | Field and Description |
|---|---|
| private final WebSocketClientNegotiation | |
| private final HttpHeaders | |
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public | DefaultNegotiation(List<String> protocols, HttpHeaders requestHeaders, WebSocketClient.
|
| Modifier and Type | Method and Description |
|---|---|
| public void | afterRequest(Map<String, List<String>> headers)
Overrides io.
|
| public void | beforeRequest(Map<String, List<String>> headers)
Overrides io.
|
| public HttpHeaders |
| delegate | back to summary |
|---|---|
| private final WebSocketClientNegotiation delegate
| |
| requestHeaders | back to summary |
|---|---|
| private final HttpHeaders requestHeaders | |
| responseHeaders | back to summary |
|---|---|
| private final HttpHeaders responseHeaders | |
| DefaultNegotiation | back to summary |
|---|---|
| public DefaultNegotiation(List<String> protocols, HttpHeaders requestHeaders, WebSocketClient. | |
| afterRequest | back to summary |
|---|---|
| public void afterRequest(Map<String, List<String>> headers) Overrides io.
| |
| beforeRequest | back to summary |
|---|---|
| public void beforeRequest(Map<String, List<String>> headers) Overrides io.
| |
| getResponseHeaders | back to summary |
|---|---|
| public HttpHeaders getResponseHeaders() | |