public class JettyRequestUpgradeStrategy extends Object implements RequestUpgradeStrategy, org.springframework.context.Lifecycle
RequestUpgradeStrategy for use with Jetty.| Constructor and Description |
|---|
JettyRequestUpgradeStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning() |
void |
start() |
void |
stop() |
reactor.core.publisher.Mono<Void> |
upgrade(org.springframework.web.server.ServerWebExchange exchange,
WebSocketHandler handler,
String subProtocol)
Upgrade to a WebSocket session and handle it with the given handler.
|
public void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic reactor.core.publisher.Mono<Void> upgrade(org.springframework.web.server.ServerWebExchange exchange, WebSocketHandler handler, @Nullable String subProtocol)
RequestUpgradeStrategyupgrade in interface RequestUpgradeStrategyexchange - 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.