Class WebSocketServerExtensionHandler

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler, ChannelOutboundHandler
Direct Known Subclasses:
WebSocketServerCompressionHandler

public class WebSocketServerExtensionHandler extends ChannelDuplexHandler
This handler negotiates and initializes the WebSocket Extensions. It negotiates the extensions based on the client desired order, ensures that the successfully negotiated extensions are consistent between them, and initializes the channel pipeline with the extension decoder and encoder. Find a basic implementation for compression extensions at io.netty.handler.codec.http.websocketx.extensions.compression.WebSocketServerCompressionHandler.
  • Constructor Details

    • WebSocketServerExtensionHandler

      public WebSocketServerExtensionHandler(WebSocketServerExtensionHandshaker... extensionHandshakers)
      Constructor
      Parameters:
      extensionHandshakers - The extension handshaker in priority order. A handshaker could be repeated many times with fallback configuration.
    • WebSocketServerExtensionHandler

      public WebSocketServerExtensionHandler(int maxPipelineDepth, WebSocketServerExtensionHandshaker... extensionHandshakers)
      Constructor
      Parameters:
      maxPipelineDepth - The maximum number of pipelined upgrade requests.
      extensionHandshakers - The extension handshaker in priority order. A handshaker could be repeated many times with fallback configuration.
  • Method Details