Class UndertowRequestUpgradeStrategy
java.lang.Object
org.springframework.web.reactive.socket.server.upgrade.UndertowRequestUpgradeStrategy
- All Implemented Interfaces:
RequestUpgradeStrategy
@Deprecated(since="6.2.18",
forRemoval=true)
public class UndertowRequestUpgradeStrategy
extends Object
implements RequestUpgradeStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
as of 6.2.18 with no replacement
A WebSocket
RequestUpgradeStrategy for Undertow.- Since:
- 5.0
- Author:
- Violeta Georgieva, Rossen Stoyanchev, Brian Clozel
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>upgrade(org.springframework.web.server.ServerWebExchange exchange, WebSocketHandler handler, String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) Deprecated, for removal: This API element is subject to removal in a future version.Upgrade to a WebSocket session and handle it with the given handler.
-
Constructor Details
-
UndertowRequestUpgradeStrategy
public UndertowRequestUpgradeStrategy()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
upgrade
public reactor.core.publisher.Mono<Void> upgrade(org.springframework.web.server.ServerWebExchange exchange, WebSocketHandler handler, @Nullable String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) Deprecated, for removal: This API element is subject to removal in a future version.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.
-