Home / Function/ upgradeHandlerGetsActivated() — netty Function Reference

upgradeHandlerGetsActivated() — netty Function Reference

Architecture documentation for the upgradeHandlerGetsActivated() function in Http2MultiplexClientUpgradeTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c61774d3_7923_e8ff_f42b_e13be660735e["upgradeHandlerGetsActivated()"]
  e84355c5_9733_4b97_b606_02dd7b61b869["Http2MultiplexClientUpgradeTest"]
  c61774d3_7923_e8ff_f42b_e13be660735e -->|defined in| e84355c5_9733_4b97_b606_02dd7b61b869
  style c61774d3_7923_e8ff_f42b_e13be660735e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexClientUpgradeTest.java lines 64–78

    @Test
    public void upgradeHandlerGetsActivated() throws Exception {
        UpgradeHandler upgradeHandler = new UpgradeHandler();
        C codec = newCodec(upgradeHandler);
        EmbeddedChannel ch = new EmbeddedChannel(codec, newMultiplexer(upgradeHandler));

        codec.onHttpClientUpgrade();

        assertFalse(upgradeHandler.stateOnActive.localSideOpen());
        assertTrue(upgradeHandler.stateOnActive.remoteSideOpen());
        assertNotNull(codec.connection().stream(Http2CodecUtil.HTTP_UPGRADE_STREAM_ID).getProperty(codec.streamKey));
        assertEquals(Http2CodecUtil.HTTP_UPGRADE_STREAM_ID, upgradeHandler.streamId);
        assertTrue(ch.finishAndReleaseAll());
        assertTrue(upgradeHandler.channelInactiveCalled);
    }

Domain

Subdomains

Frequently Asked Questions

What does upgradeHandlerGetsActivated() do?
upgradeHandlerGetsActivated() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexClientUpgradeTest.java.
Where is upgradeHandlerGetsActivated() defined?
upgradeHandlerGetsActivated() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2MultiplexClientUpgradeTest.java at line 64.

Analyze Your Own Codebase

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

Try Supermodel Free