Home / Class/ WebSocketClientHandshaker08 Class — netty Architecture

WebSocketClientHandshaker08 Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  daf2be11_c8e3_bc40_9146_8afca521ae80["WebSocketClientHandshaker08"]
  79f27ac7_30bb_b500_2209_5518af893176["WebSocketClientHandshaker08.java"]
  daf2be11_c8e3_bc40_9146_8afca521ae80 -->|defined in| 79f27ac7_30bb_b500_2209_5518af893176
  45a9096f_1e13_e120_01eb_27f08422dbe2["WebSocketClientHandshaker08()"]
  daf2be11_c8e3_bc40_9146_8afca521ae80 -->|method| 45a9096f_1e13_e120_01eb_27f08422dbe2
  d6892622_1691_ba4a_908a_87575a3405dc["FullHttpRequest()"]
  daf2be11_c8e3_bc40_9146_8afca521ae80 -->|method| d6892622_1691_ba4a_908a_87575a3405dc
  45bd1cf1_8955_21e9_1d6e_9914f74ea541["verify()"]
  daf2be11_c8e3_bc40_9146_8afca521ae80 -->|method| 45bd1cf1_8955_21e9_1d6e_9914f74ea541
  d3e35493_8b6e_5527_f1d7_312457c955cc["WebSocketFrameDecoder()"]
  daf2be11_c8e3_bc40_9146_8afca521ae80 -->|method| d3e35493_8b6e_5527_f1d7_312457c955cc
  5107d9da_3be6_f5bc_7bee_5da16fb86be6["WebSocketFrameEncoder()"]
  daf2be11_c8e3_bc40_9146_8afca521ae80 -->|method| 5107d9da_3be6_f5bc_7bee_5da16fb86be6

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker08.java lines 41–348

public class WebSocketClientHandshaker08 extends WebSocketClientHandshaker {

    private static final InternalLogger logger = InternalLoggerFactory.getInstance(WebSocketClientHandshaker08.class);

    public static final String MAGIC_GUID = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11";

    private String expectedChallengeResponseString;

    private final boolean allowExtensions;
    private final boolean performMasking;
    private final boolean allowMaskMismatch;

    /**
     * Creates a new instance.
     *
     * @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 allowExtensions
     *            Allow extensions to be used in the reserved bits of the web socket frame
     * @param customHeaders
     *            Map of custom headers to add to the client request
     * @param maxFramePayloadLength
     *            Maximum length of a frame's payload
     */
    public WebSocketClientHandshaker08(URI webSocketURL, WebSocketVersion version, String subprotocol,
                                       boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength) {
        this(webSocketURL, version, subprotocol, allowExtensions, customHeaders, maxFramePayloadLength, true,
                false, DEFAULT_FORCE_CLOSE_TIMEOUT_MILLIS);
    }

    /**
     * Creates a new instance.
     *
     * @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 allowExtensions
     *            Allow extensions to be used in the reserved bits of the web socket frame
     * @param customHeaders
     *            Map of custom headers to add to the client request
     * @param maxFramePayloadLength
     *            Maximum length of a frame's payload
     * @param performMasking
     *            Whether to mask all written websocket frames. This must be set to true in order to be fully compatible
     *            with the websocket specifications. Client applications that communicate with a non-standard server
     *            which doesn't require masking might set this to false to achieve a higher performance.
     * @param allowMaskMismatch
     *            When set to true, frames which are not masked properly according to the standard will still be
     *            accepted
     */
    public WebSocketClientHandshaker08(URI webSocketURL, WebSocketVersion version, String subprotocol,
                                       boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength,
                                       boolean performMasking, boolean allowMaskMismatch) {
        this(webSocketURL, version, subprotocol, allowExtensions, customHeaders, maxFramePayloadLength, performMasking,
                allowMaskMismatch, DEFAULT_FORCE_CLOSE_TIMEOUT_MILLIS);
    }

    /**
     * Creates a new instance.
     *
     * @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 allowExtensions
     *            Allow extensions to be used in the reserved bits of the web socket frame
     * @param customHeaders
     *            Map of custom headers to add to the client request
     * @param maxFramePayloadLength

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free