WebSocketClient implementation for use with Reactor Netty for Netty 5.
This class is based on ReactorNettyWebSocketClient.
| Modifier and Type | Field and Description |
|---|---|
| private Boolean | |
| private final HttpClient | |
| private static final Log | |
| private final Supplier |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ReactorNetty2WebSocketClient(HttpClient httpClient)
Constructor that accepts an existing |
| public | ReactorNetty2WebSocketClient(HttpClient httpClient, Supplier<WebsocketClientSpec.
Constructor that accepts an existing |
| Modifier and Type | Method and Description |
|---|---|
| private WebsocketClientSpec | |
| 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 requestHeaders, WebSocketHandler the handler of the WebSocket session handler)Implements org. A variant of |
| public HttpClient | |
| public WebsocketClientSpec | getWebsocketClientSpec()
Build an instance of |
| private void | |
| private HttpHeaders |
| handlePing | back to summary |
|---|---|
| private Boolean handlePing
| |
| httpClient | back to summary |
|---|---|
| private final HttpClient httpClient | |
| logger | back to summary |
|---|---|
| private static final Log logger | |
| specBuilderSupplier | back to summary |
|---|---|
| private final Supplier<WebsocketClientSpec. | |
| ReactorNetty2WebSocketClient | back to summary |
|---|---|
| public ReactorNetty2WebSocketClient() Default constructor. | |
| ReactorNetty2WebSocketClient | back to summary |
|---|---|
| public ReactorNetty2WebSocketClient(HttpClient httpClient) Constructor that accepts an existing
| |
| ReactorNetty2WebSocketClient | back to summary |
|---|---|
| public ReactorNetty2WebSocketClient(HttpClient httpClient, Supplier<WebsocketClientSpec. Constructor that accepts an existing | |
| buildSpec | back to summary |
|---|---|
| private WebsocketClientSpec buildSpec(String protocols) | |
| 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
| |
| getHttpClient | back to summary |
|---|---|
| public HttpClient getHttpClient() Return the configured | |
| getWebsocketClientSpec | back to summary |
|---|---|
| public WebsocketClientSpec getWebsocketClientSpec() Build an instance of | |
| setNettyHeaders | back to summary |
|---|---|
| private void setNettyHeaders(HttpHeaders httpHeaders, HttpHeaders nettyHeaders) | |
| toHttpHeaders | back to summary |
|---|---|
| private HttpHeaders toHttpHeaders(WebsocketInbound inbound) | |