Class JettyRequestUpgradeStrategy
java.lang.Object
org.springframework.web.reactive.socket.server.upgrade.JettyRequestUpgradeStrategy
- All Implemented Interfaces:
- RequestUpgradeStrategy
A WebSocket 
RequestUpgradeStrategy for Jetty 12 EE11.- Since:
- 5.3.4
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddWebSocketConfigurer(Consumer<org.eclipse.jetty.websocket.api.Configurable> webSocketConfigurer) Add a callback to configure WebSocket server parameters onJettyWebSocketServerContainer.reactor.core.publisher.Mono<Void>upgrade(ServerWebExchange exchange, WebSocketHandler handler, @Nullable String subProtocol, Supplier<HandshakeInfo> handshakeInfoFactory) Upgrade to a WebSocket session and handle it with the given handler.
- 
Constructor Details- 
JettyRequestUpgradeStrategypublic JettyRequestUpgradeStrategy()
 
- 
- 
Method Details- 
addWebSocketConfigurerpublic void addWebSocketConfigurer(Consumer<org.eclipse.jetty.websocket.api.Configurable> webSocketConfigurer) Add a callback to configure WebSocket server parameters onJettyWebSocketServerContainer.- Since:
- 6.1
 
- 
upgradepublic 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 interface- RequestUpgradeStrategy
- Parameters:
- exchange- the current exchange
- handler- handler for the WebSocket session
- subProtocol- the selected sub-protocol got the handler
- handshakeInfoFactory- factory to create HandshakeInfo for the WebSocket session
- Returns:
- completion Mono<Void>to indicate the outcome of the WebSocket session handling.
 
 
-