Class WebSocketServerHandshaker

java.lang.Object
io.netty.handler.codec.http.websocketx.WebSocketServerHandshaker
Direct Known Subclasses:
WebSocketServerHandshaker00, WebSocketServerHandshaker07, WebSocketServerHandshaker08, WebSocketServerHandshaker13

public abstract class WebSocketServerHandshaker extends Object
Base class for server side web socket opening and closing handshakes
  • Field Details

  • Constructor Details

    • WebSocketServerHandshaker

      protected WebSocketServerHandshaker(WebSocketVersion version, String uri, String subprotocols, int maxFramePayloadLength)
      Constructor specifying the destination web socket location
      Parameters:
      version - the protocol version
      uri - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
      subprotocols - CSV of supported protocols. Null if sub protocols not supported.
      maxFramePayloadLength - Maximum length of a frame's payload
    • WebSocketServerHandshaker

      protected WebSocketServerHandshaker(WebSocketVersion version, String uri, String subprotocols, WebSocketDecoderConfig decoderConfig)
      Constructor specifying the destination web socket location
      Parameters:
      version - the protocol version
      uri - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
      subprotocols - CSV of supported protocols. Null if sub protocols not supported.
      decoderConfig - Frames decoder configuration.
  • Method Details