Class ReactorNetty2RequestUpgradeStrategy

java.lang.Object
org.springframework.web.reactive.socket.server.upgrade.ReactorNetty2RequestUpgradeStrategy
All Implemented Interfaces:
RequestUpgradeStrategy

@Deprecated(since="6.2.18", forRemoval=true) public class ReactorNetty2RequestUpgradeStrategy 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 Reactor Netty for Netty 5.

This class is based on ReactorNettyRequestUpgradeStrategy.

Since:
6.0
Author:
Violeta Georgieva
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create an instances with a default WebsocketServerSpec.Builder.
    ReactorNetty2RequestUpgradeStrategy(Supplier<reactor.netty5.http.server.WebsocketServerSpec.Builder> builderSupplier)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create an instance with a pre-configured WebsocketServerSpec.Builder to use for WebSocket upgrades.
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.netty5.http.server.WebsocketServerSpec
    Deprecated, for removal: This API element is subject to removal in a future version.
    Build an instance of WebsocketServerSpec that reflects the current configuration.
    reactor.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ReactorNetty2RequestUpgradeStrategy

      public ReactorNetty2RequestUpgradeStrategy()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create an instances with a default WebsocketServerSpec.Builder.
      Since:
      5.2.6
    • ReactorNetty2RequestUpgradeStrategy

      public ReactorNetty2RequestUpgradeStrategy(Supplier<reactor.netty5.http.server.WebsocketServerSpec.Builder> builderSupplier)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create an instance with a pre-configured WebsocketServerSpec.Builder to use for WebSocket upgrades.
      Since:
      5.2.6
  • Method Details

    • getWebsocketServerSpec

      public reactor.netty5.http.server.WebsocketServerSpec getWebsocketServerSpec()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Build an instance of WebsocketServerSpec that reflects the current configuration. This can be used to check the configured parameters except for sub-protocols which depend on the WebSocketHandler that is used for a given upgrade.
      Since:
      5.2.6
    • 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: RequestUpgradeStrategy
      Upgrade to a WebSocket session and handle it with the given handler.
      Specified by:
      upgrade in 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.