public class ReactorNettyRequestUpgradeStrategy extends java.lang.Object implements RequestUpgradeStrategy
RequestUpgradeStrategy
for use with Reactor Netty.Constructor and Description |
---|
ReactorNettyRequestUpgradeStrategy() |
Modifier and Type | Method and Description |
---|---|
private HandshakeInfo |
getHandshakeInfo(ServerWebExchange exchange,
java.lang.String protocol) |
<any> |
upgrade(ServerWebExchange exchange,
WebSocketHandler handler,
java.lang.String subProtocol)
Upgrade to a WebSocket session and handle it with the given handler.
|
public <any> upgrade(ServerWebExchange exchange, WebSocketHandler handler, @Nullable java.lang.String subProtocol)
RequestUpgradeStrategy
upgrade
in interface RequestUpgradeStrategy
exchange
- the current exchangehandler
- handler for the WebSocket sessionsubProtocol
- the selected sub-protocol got the handlerMono<Void>
to indicate the outcome of the
WebSocket session handling.private HandshakeInfo getHandshakeInfo(ServerWebExchange exchange, @Nullable java.lang.String protocol)