RequestUpgradeStrategy for Reactor Netty for Netty 5.
This class is based on ReactorNettyRequestUpgradeStrategy.
| Modifier and Type | Field and Description |
|---|---|
| private final Supplier |
| Access | Constructor and Description |
|---|---|
| public | ReactorNetty2RequestUpgradeStrategy()
Create an instances with a default |
| public | ReactorNetty2RequestUpgradeStrategy(Supplier<WebsocketServerSpec.
Create an instance with a pre-configured |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv WebsocketServerSpec | |
| public WebsocketServerSpec | getWebsocketServerSpec()
Build an instance of |
| public Mono | upgrade(ServerWebExchange
the current exchange exchange, WebSocketHandler handler for the WebSocket session handler, String the selected sub-protocol got the handler subProtocol, Supplier<HandshakeInfo> factory to create HandshakeInfo for the WebSocket session handshakeInfoFactory)Implements org. Upgrade to a WebSocket session and handle it with the given handler. |
| specBuilderSupplier | back to summary |
|---|---|
| private final Supplier<WebsocketServerSpec. | |
| ReactorNetty2RequestUpgradeStrategy | back to summary |
|---|---|
| public ReactorNetty2RequestUpgradeStrategy() Create an instances with a default
| |
| ReactorNetty2RequestUpgradeStrategy | back to summary |
|---|---|
| public ReactorNetty2RequestUpgradeStrategy(Supplier<WebsocketServerSpec. Create an instance with a pre-configured
| |
| buildSpec | back to summary |
|---|---|
| pack-priv WebsocketServerSpec buildSpec(String subProtocol) | |
| getWebsocketServerSpec | back to summary |
|---|---|
| public WebsocketServerSpec getWebsocketServerSpec() Build an instance of
| |
| upgrade | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Upgrade to a WebSocket session and handle it with the given handler.
| |