Home / Class/ WebSocketClientHandshaker07 Class — netty Architecture

WebSocketClientHandshaker07 Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  9df1edec_18d7_0ea2_1c77_46c3f30db1bc["WebSocketClientHandshaker07"]
  c2653792_2078_0a7c_6ed7_6f19f156af3b["WebSocketClientHandshaker07.java"]
  9df1edec_18d7_0ea2_1c77_46c3f30db1bc -->|defined in| c2653792_2078_0a7c_6ed7_6f19f156af3b
  beda6489_06f0_5c9b_b196_76b6aaa31c90["WebSocketClientHandshaker07()"]
  9df1edec_18d7_0ea2_1c77_46c3f30db1bc -->|method| beda6489_06f0_5c9b_b196_76b6aaa31c90
  d581963c_bad8_f2ee_bdcc_e2d2d26ee4ca["FullHttpRequest()"]
  9df1edec_18d7_0ea2_1c77_46c3f30db1bc -->|method| d581963c_bad8_f2ee_bdcc_e2d2d26ee4ca
  3f68aa5c_2de9_cf26_51f7_309b784bcbe0["verify()"]
  9df1edec_18d7_0ea2_1c77_46c3f30db1bc -->|method| 3f68aa5c_2de9_cf26_51f7_309b784bcbe0
  f336d1d0_2a3a_5a29_ca47_6af2ba358cc3["WebSocketFrameDecoder()"]
  9df1edec_18d7_0ea2_1c77_46c3f30db1bc -->|method| f336d1d0_2a3a_5a29_ca47_6af2ba358cc3
  bf2500ed_8764_a8e5_26a3_90b7e72a9895["WebSocketFrameEncoder()"]
  9df1edec_18d7_0ea2_1c77_46c3f30db1bc -->|method| bf2500ed_8764_a8e5_26a3_90b7e72a9895

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker07.java lines 41–346

public class WebSocketClientHandshaker07 extends WebSocketClientHandshaker {

    private static final InternalLogger logger = InternalLoggerFactory.getInstance(WebSocketClientHandshaker07.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 WebSocketClientHandshaker07(URI webSocketURL, WebSocketVersion version, String subprotocol,
                                       boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength) {
        this(webSocketURL, version, subprotocol, allowExtensions, customHeaders, maxFramePayloadLength, true, false);
    }

    /**
     * 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 WebSocketClientHandshaker07(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
     *            Maximum length of a frame's payload
     * @param performMasking

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free