Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

Architecture documentation for the initChannel() function in Http3RequestStreamInitializer.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  d2e6ee0d_99d1_fac4_8939_c6706a9a9fb9["initChannel()"]
  bd0da33c_c0aa_7e79_1a49_7b0216a5fa62["Http3RequestStreamInitializer"]
  d2e6ee0d_99d1_fac4_8939_c6706a9a9fb9 -->|defined in| bd0da33c_c0aa_7e79_1a49_7b0216a5fa62
  6d5d1658_48c1_b5f6_7f61_4359fef3fd40["initRequestStream()"]
  d2e6ee0d_99d1_fac4_8939_c6706a9a9fb9 -->|calls| 6d5d1658_48c1_b5f6_7f61_4359fef3fd40
  style d2e6ee0d_99d1_fac4_8939_c6706a9a9fb9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/Http3RequestStreamInitializer.java lines 29–49

    @Override
    protected final void initChannel(QuicStreamChannel ch) {
        ChannelPipeline pipeline = ch.pipeline();
        Http3ConnectionHandler connectionHandler = ch.parent().pipeline().get(Http3ConnectionHandler.class);
        if (connectionHandler == null) {
            throw new IllegalStateException("Couldn't obtain the " +
                    StringUtil.simpleClassName(Http3ConnectionHandler.class) + " of the parent Channel");
        }

        Http3RequestStreamEncodeStateValidator encodeStateValidator = new Http3RequestStreamEncodeStateValidator();
        Http3RequestStreamDecodeStateValidator decodeStateValidator = new Http3RequestStreamDecodeStateValidator();

        // Add the encoder and decoder in the pipeline so we can handle Http3Frames
        pipeline.addLast(connectionHandler.newCodec(encodeStateValidator, decodeStateValidator));
        // Add the handler that will validate what we write and receive on this stream.
        pipeline.addLast(encodeStateValidator);
        pipeline.addLast(decodeStateValidator);
        pipeline.addLast(connectionHandler.newRequestStreamValidationHandler(ch, encodeStateValidator,
                decodeStateValidator));
        initRequestStream(ch);
    }

Domain

Subdomains

Frequently Asked Questions

What does initChannel() do?
initChannel() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3RequestStreamInitializer.java.
Where is initChannel() defined?
initChannel() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3RequestStreamInitializer.java at line 29.
What does initChannel() call?
initChannel() calls 1 function(s): initRequestStream.

Analyze Your Own Codebase

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

Try Supermodel Free