Class WebSocketServerHandshaker

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

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

    • logger

      protected static final InternalLogger logger
    • uri

      private final java.lang.String uri
    • isSecure

      private final boolean isSecure
    • host

      private final java.lang.String host
    • path

      private final java.lang.String path
    • subprotocols

      private final java.lang.String[] subprotocols
    • version

      private final WebSocketVersion version
    • decoderConfig

      private final WebSocketDecoderConfig decoderConfig
    • selectedSubprotocol

      private java.lang.String selectedSubprotocol
    • SUB_PROTOCOL_WILDCARD

      public static final java.lang.String SUB_PROTOCOL_WILDCARD
      Use this as wildcard to support all requested sub-protocols
      See Also:
  • Constructor Details

    • WebSocketServerHandshaker

      protected WebSocketServerHandshaker(WebSocketVersion version, java.lang.String uri, java.lang.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, java.lang.String uri, java.lang.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.
    • WebSocketServerHandshaker

      WebSocketServerHandshaker(WebSocketVersion version, boolean isSecure, java.lang.String host, java.lang.String path, java.lang.String subprotocols, WebSocketDecoderConfig decoderConfig)
  • Method Details