Home / Class/ WebSocket07FrameDecoder Class — netty Architecture

WebSocket07FrameDecoder Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  7a8eea2a_0312_5c1f_b7ba_8601bcc40745["WebSocket07FrameDecoder"]
  e8379037_c7a6_b55e_bed0_c578b18eff1e["WebSocket07FrameDecoder.java"]
  7a8eea2a_0312_5c1f_b7ba_8601bcc40745 -->|defined in| e8379037_c7a6_b55e_bed0_c578b18eff1e
  cc315c65_67bd_4921_b003_646352bf6d7d["WebSocket07FrameDecoder()"]
  7a8eea2a_0312_5c1f_b7ba_8601bcc40745 -->|method| cc315c65_67bd_4921_b003_646352bf6d7d

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocket07FrameDecoder.java lines 59–115

public class WebSocket07FrameDecoder 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 WebSocket07FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength) {
        this(WebSocketDecoderConfig.newBuilder()
            .expectMaskedFrames(expectMaskedFrames)
            .allowExtensions(allowExtensions)
            .maxFramePayloadLength(maxFramePayloadLength)
            .build());
    }

    /**
     * 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 WebSocket07FrameDecoder(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 WebSocket07FrameDecoder(WebSocketDecoderConfig decoderConfig) {
        super(decoderConfig);
    }
}

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free