Home / Function/ channelRead() — netty Function Reference

channelRead() — netty Function Reference

Architecture documentation for the channelRead() function in HelloWorldHttp2Handler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  3e6fdf00_5772_8ac0_c003_2d5abd586226["channelRead()"]
  c8a162e3_eede_4376_b493_eb1ed405d206["HelloWorldHttp2Handler"]
  3e6fdf00_5772_8ac0_c003_2d5abd586226 -->|defined in| c8a162e3_eede_4376_b493_eb1ed405d206
  9ffbc081_b11c_edec_7761_cee3b226f84a["onHeadersRead()"]
  3e6fdf00_5772_8ac0_c003_2d5abd586226 -->|calls| 9ffbc081_b11c_edec_7761_cee3b226f84a
  b678494b_8b69_9e9a_c231_26c69c0f78ce["onDataRead()"]
  3e6fdf00_5772_8ac0_c003_2d5abd586226 -->|calls| b678494b_8b69_9e9a_c231_26c69c0f78ce
  style 3e6fdf00_5772_8ac0_c003_2d5abd586226 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http2/helloworld/multiplex/server/HelloWorldHttp2Handler.java lines 50–59

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        if (msg instanceof Http2HeadersFrame) {
            onHeadersRead(ctx, (Http2HeadersFrame) msg);
        } else if (msg instanceof Http2DataFrame) {
            onDataRead(ctx, (Http2DataFrame) msg);
        } else {
            super.channelRead(ctx, msg);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does channelRead() do?
channelRead() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/multiplex/server/HelloWorldHttp2Handler.java.
Where is channelRead() defined?
channelRead() is defined in example/src/main/java/io/netty/example/http2/helloworld/multiplex/server/HelloWorldHttp2Handler.java at line 50.
What does channelRead() call?
channelRead() calls 2 function(s): onDataRead, onHeadersRead.

Analyze Your Own Codebase

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

Try Supermodel Free