Class UndertowRequestUpgradeStrategy
- java.lang.Object
- org.springframework.web.reactive.socket.server.upgrade.UndertowRequestUpgradeStrategy
- All Implemented Interfaces:
RequestUpgradeStrategy
public class UndertowRequestUpgradeStrategy extends Object implements RequestUpgradeStrategy
ARequestUpgradeStrategyfor use with Undertow.- Since:
- 5.0
- Author:
- Violeta Georgieva, Rossen Stoyanchev, Brian Clozel
Constructor Summary
Constructors Constructor Description UndertowRequestUpgradeStrategy()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<Void>upgrade(ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory)Upgrade to a WebSocket session and handle it with the given handler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.reactive.socket.server.RequestUpgradeStrategy
upgrade
Constructor Detail
UndertowRequestUpgradeStrategy
public UndertowRequestUpgradeStrategy()
Method Detail
upgrade
public reactor.core.publisher.Mono<Void> upgrade(ServerWebExchange exchange, WebSocketHandler handler, @Nullable String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory)
Description copied from interface:RequestUpgradeStrategyUpgrade to a WebSocket session and handle it with the given handler.- Specified by:
upgradein interfaceRequestUpgradeStrategy- Parameters:
exchange- the current exchangehandler- handler for the WebSocket sessionsubProtocol- the selected sub-protocol got the handlerhandshakeInfoFactory- factory to create HandshakeInfo for the WebSocket session- Returns:
- completion
Mono<Void>to indicate the outcome of the WebSocket session handling.