Home / Class/ UpgradeHandler Class — netty Architecture

UpgradeHandler Class — netty Architecture

Architecture documentation for the UpgradeHandler class in Http2MultiplexClientUpgradeTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  a1e5c18f_718e_0c71_7b91_c051d1f938f7["UpgradeHandler"]
  69c421b0_c1bc_4be4_2821_dd870a92fcd7["Http2MultiplexClientUpgradeTest.java"]
  a1e5c18f_718e_0c71_7b91_c051d1f938f7 -->|defined in| 69c421b0_c1bc_4be4_2821_dd870a92fcd7
  14d4e0ed_e1fc_0dbb_e9a5_72eeb8bae0ba["channelActive()"]
  a1e5c18f_718e_0c71_7b91_c051d1f938f7 -->|method| 14d4e0ed_e1fc_0dbb_e9a5_72eeb8bae0ba
  e595247d_e4bc_077d_67d2_545f3aa7c18b["channelInactive()"]
  a1e5c18f_718e_0c71_7b91_c051d1f938f7 -->|method| e595247d_e4bc_077d_67d2_545f3aa7c18b

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexClientUpgradeTest.java lines 40–58

    private static final class UpgradeHandler extends ChannelInboundHandlerAdapter {
        Http2Stream.State stateOnActive;
        int streamId;
        boolean channelInactiveCalled;

        @Override
        public void channelActive(ChannelHandlerContext ctx) throws Exception {
            Http2StreamChannel ch = (Http2StreamChannel) ctx.channel();
            stateOnActive = ch.stream().state();
            streamId = ch.stream().id();
            super.channelActive(ctx);
        }

        @Override
        public void channelInactive(ChannelHandlerContext ctx) throws Exception {
            channelInactiveCalled = true;
            super.channelInactive(ctx);
        }
    }

Frequently Asked Questions

What is the UpgradeHandler class?
UpgradeHandler is a class in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexClientUpgradeTest.java.
Where is UpgradeHandler defined?
UpgradeHandler is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexClientUpgradeTest.java at line 40.

Analyze Your Own Codebase

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

Try Supermodel Free