Home / Class/ WebSocketClientHandshaker00 Class — netty Architecture

WebSocketClientHandshaker00 Class — netty Architecture

Architecture documentation for the WebSocketClientHandshaker00 class in WebSocketClientHandshaker00.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  65386c76_5fdd_9bc6_905a_654742368a12["WebSocketClientHandshaker00"]
  570dff73_17c7_ad8e_74cf_f2ec5de736d6["WebSocketClientHandshaker00.java"]
  65386c76_5fdd_9bc6_905a_654742368a12 -->|defined in| 570dff73_17c7_ad8e_74cf_f2ec5de736d6
  106de3d9_9b2a_fb6d_d061_ad6de99de389["WebSocketClientHandshaker00()"]
  65386c76_5fdd_9bc6_905a_654742368a12 -->|method| 106de3d9_9b2a_fb6d_d061_ad6de99de389
  63f90503_4dd0_aaa7_7aec_fb032ff8919e["FullHttpRequest()"]
  65386c76_5fdd_9bc6_905a_654742368a12 -->|method| 63f90503_4dd0_aaa7_7aec_fb032ff8919e
  bf053156_bb80_b73d_0d64_0c097427f3db["verify()"]
  65386c76_5fdd_9bc6_905a_654742368a12 -->|method| bf053156_bb80_b73d_0d64_0c097427f3db
  9abda4ea_6c31_e490_a5d3_7d8575bc694f["String()"]
  65386c76_5fdd_9bc6_905a_654742368a12 -->|method| 9abda4ea_6c31_e490_a5d3_7d8575bc694f
  806524a9_d2a2_bd1b_94c5_d0e939353ab5["WebSocketFrameDecoder()"]
  65386c76_5fdd_9bc6_905a_654742368a12 -->|method| 806524a9_d2a2_bd1b_94c5_d0e939353ab5
  b551ec28_d985_dd88_4532_e412a9f055cc["WebSocketFrameEncoder()"]
  65386c76_5fdd_9bc6_905a_654742368a12 -->|method| b551ec28_d985_dd88_4532_e412a9f055cc

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker00.java lines 44–340

public class WebSocketClientHandshaker00 extends WebSocketClientHandshaker {

    private ByteBuf expectedChallengeResponseBytes;

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

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

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

    /**
     * Creates a new instance with the specified destination WebSocket location and version to initiate.
     *
     * @param webSocketURL
     *            URL for web socket communications. e.g "ws://myhost.com/mypath". Subsequent web socket frames will be
     *            sent to this URL.

Frequently Asked Questions

What is the WebSocketClientHandshaker00 class?
WebSocketClientHandshaker00 is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker00.java.
Where is WebSocketClientHandshaker00 defined?
WebSocketClientHandshaker00 is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker00.java at line 44.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free