Home / Function/ acceptInboundMessage() — netty Function Reference

acceptInboundMessage() — netty Function Reference

Architecture documentation for the acceptInboundMessage() function in PerMessageDeflateDecoder.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  0800a090_d457_2caa_7088_30039baddbe8["acceptInboundMessage()"]
  00e9700c_053e_cdcc_a224_1dd69bde525a["PerMessageDeflateDecoder"]
  0800a090_d457_2caa_7088_30039baddbe8 -->|defined in| 00e9700c_053e_cdcc_a224_1dd69bde525a
  style 0800a090_d457_2caa_7088_30039baddbe8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoder.java lines 58–75

    @Override
    public boolean acceptInboundMessage(Object msg) throws Exception {
        if (!super.acceptInboundMessage(msg)) {
            return false;
        }

        WebSocketFrame wsFrame = (WebSocketFrame) msg;
        if (extensionDecoderFilter().mustSkip(wsFrame)) {
            if (compressing) {
                throw new IllegalStateException("Cannot skip per message deflate decoder, compression in progress");
            }
            return false;
        }

        return ((wsFrame instanceof TextWebSocketFrame || wsFrame instanceof BinaryWebSocketFrame) &&
                (wsFrame.rsv() & WebSocketExtension.RSV1) > 0) ||
               (wsFrame instanceof ContinuationWebSocketFrame && compressing);
    }

Subdomains

Frequently Asked Questions

What does acceptInboundMessage() do?
acceptInboundMessage() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoder.java.
Where is acceptInboundMessage() defined?
acceptInboundMessage() is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateDecoder.java at line 58.

Analyze Your Own Codebase

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

Try Supermodel Free