Class WebSocketClientHandshaker00

    • Field Detail

      • WEBSOCKET

        private static final AsciiString WEBSOCKET
      • expectedChallengeResponseBytes

        private ByteBuf expectedChallengeResponseBytes
    • Constructor Detail

      • WebSocketClientHandshaker00

        public WebSocketClientHandshaker00​(java.net.URI webSocketURL,
                                           WebSocketVersion version,
                                           java.lang.String subprotocol,
                                           HttpHeaders customHeaders,
                                           int maxFramePayloadLength)
        Creates a new instance with the specified destination WebSocket location and version to initiate.
        Parameters:
        webSocketURL - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
        version - Version of web socket specification to use to connect to the server
        subprotocol - Sub protocol request sent to the server.
        customHeaders - Map of custom headers to add to the client request
        maxFramePayloadLength - Maximum length of a frame's payload
      • WebSocketClientHandshaker00

        public WebSocketClientHandshaker00​(java.net.URI webSocketURL,
                                           WebSocketVersion version,
                                           java.lang.String subprotocol,
                                           HttpHeaders customHeaders,
                                           int maxFramePayloadLength,
                                           long forceCloseTimeoutMillis)
        Creates a new instance with the specified destination WebSocket location and version to initiate.
        Parameters:
        webSocketURL - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
        version - Version of web socket specification to use to connect to the server
        subprotocol - Sub protocol request sent to the server.
        customHeaders - Map of custom headers to add to the client request
        maxFramePayloadLength - Maximum length of a frame's payload
        forceCloseTimeoutMillis - Close the connection if it was not closed by the server after timeout specified
      • WebSocketClientHandshaker00

        WebSocketClientHandshaker00​(java.net.URI webSocketURL,
                                    WebSocketVersion version,
                                    java.lang.String subprotocol,
                                    HttpHeaders customHeaders,
                                    int maxFramePayloadLength,
                                    long forceCloseTimeoutMillis,
                                    boolean absoluteUpgradeUrl)
        Creates a new instance with the specified destination WebSocket location and version to initiate.
        Parameters:
        webSocketURL - URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be sent to this URL.
        version - Version of web socket specification to use to connect to the server
        subprotocol - Sub protocol request sent to the server.
        customHeaders - Map of custom headers to add to the client request
        maxFramePayloadLength - Maximum length of a frame's payload
        forceCloseTimeoutMillis - Close the connection if it was not closed by the server after timeout specified
        absoluteUpgradeUrl - Use an absolute url for the Upgrade request, typically when connecting through an HTTP proxy over clear HTTP