Home / Class/ WebSocket13FrameDecoder Class — netty Architecture

WebSocket13FrameDecoder Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  5cbb55da_7ec4_beae_623b_6eb90fe879bc["WebSocket13FrameDecoder"]
  7a2d5974_9dd8_ef70_0c29_db3b4e9e5155["WebSocket13FrameDecoder.java"]
  5cbb55da_7ec4_beae_623b_6eb90fe879bc -->|defined in| 7a2d5974_9dd8_ef70_0c29_db3b4e9e5155
  8a41f0f5_3bdd_0b24_8d3b_7aba5b0a183f["WebSocket13FrameDecoder()"]
  5cbb55da_7ec4_beae_623b_6eb90fe879bc -->|method| 8a41f0f5_3bdd_0b24_8d3b_7aba5b0a183f

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocket13FrameDecoder.java lines 59–111

public class WebSocket13FrameDecoder extends WebSocket08FrameDecoder {

    /**
     * Constructor
     *
     * @param expectMaskedFrames
     *            Web socket servers must set this to true processed incoming masked payload. Client implementations
     *            must set this to false.
     * @param allowExtensions
     *            Flag to allow reserved extension bits to be used or not
     * @param maxFramePayloadLength
     *            Maximum length of a frame's payload. Setting this to an appropriate value for you application
     *            helps check for denial of services attacks.
     */
    public WebSocket13FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength) {
        this(expectMaskedFrames, allowExtensions, maxFramePayloadLength, false);
    }

    /**
     * Constructor
     *
     * @param expectMaskedFrames
     *            Web socket servers must set this to true processed incoming masked payload. Client implementations
     *            must set this to false.
     * @param allowExtensions
     *            Flag to allow reserved extension bits to be used or not
     * @param maxFramePayloadLength
     *            Maximum length of a frame's payload. Setting this to an appropriate value for you application
     *            helps check for denial of services attacks.
     * @param allowMaskMismatch
     *            When set to true, frames which are not masked properly according to the standard will still be
     *            accepted.
     */
    public WebSocket13FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength,
                                   boolean allowMaskMismatch) {
        this(WebSocketDecoderConfig.newBuilder()
            .expectMaskedFrames(expectMaskedFrames)
            .allowExtensions(allowExtensions)
            .maxFramePayloadLength(maxFramePayloadLength)
            .allowMaskMismatch(allowMaskMismatch)
            .build());
    }

    /**
     * Constructor
     *
     * @param decoderConfig
     *            Frames decoder configuration.
     */
    public WebSocket13FrameDecoder(WebSocketDecoderConfig decoderConfig) {
        super(decoderConfig);
    }
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free