Class WebsocketSpecImpl

java.lang.Object
reactor.netty.http.websocket.WebsocketSpecImpl
All Implemented Interfaces:
WebsocketSpec

public class WebsocketSpecImpl extends Object implements WebsocketSpec
Configurer implementation for WebsocketSpec.
Since:
0.9.5
Author:
Dmitrii Borin, Violeta Georgieva
  • Constructor Details

  • Method Details

    • protocols

      public final @Nullable String protocols()
      Description copied from interface: WebsocketSpec
      Returns the configured sub protocols.
      Specified by:
      protocols in interface WebsocketSpec
      Returns:
      returns the configured sub protocols.
    • maxFramePayloadLength

      public final int maxFramePayloadLength()
      Description copied from interface: WebsocketSpec
      Returns the configured maximum allowable frame payload length.

      Note: When a websocket compression extension is enabled, this setting is applied on the compressed data.

      Specified by:
      maxFramePayloadLength in interface WebsocketSpec
      Returns:
      returns the configured maximum allowable frame payload length.
    • handlePing

      public final boolean handlePing()
      Description copied from interface: WebsocketSpec
      Returns whether to proxy websocket PING frames or respond to them.
      Specified by:
      handlePing in interface WebsocketSpec
      Returns:
      returns whether to proxy websocket PING frames or respond to them.
    • compress

      public boolean compress()
      Description copied from interface: WebsocketSpec
      Returns whether the websocket compression extension is enabled.
      Specified by:
      compress in interface WebsocketSpec
      Returns:
      returns whether the websocket compression extension is enabled.