Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d218fb4e_b2c6_f30f_168f_8664292e3127["initChannel()"]
  73e8abcd_7c18_039f_7c2e_328f3fa65aeb["Http3PushStreamClientInitializer"]
  d218fb4e_b2c6_f30f_168f_8664292e3127 -->|defined in| 73e8abcd_7c18_039f_7c2e_328f3fa65aeb
  22cd0fc2_38d2_d586_7af4_da209efe1fce["initPushStream()"]
  d218fb4e_b2c6_f30f_168f_8664292e3127 -->|calls| 22cd0fc2_38d2_d586_7af4_da209efe1fce
  style d218fb4e_b2c6_f30f_168f_8664292e3127 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/Http3PushStreamClientInitializer.java lines 31–52

    @Override
    protected final void initChannel(QuicStreamChannel ch) {
        if (isServerInitiatedQuicStream(ch)) {
            throw new IllegalArgumentException("Using client push stream initializer for server stream: " +
                    ch.streamId());
        }
        Http3CodecUtils.verifyIsUnidirectional(ch);

        Http3ConnectionHandler connectionHandler = Http3CodecUtils.getConnectionHandlerOrClose(ch.parent());
        if (connectionHandler == null) {
            // connection should have been closed
            return;
        }
        ChannelPipeline pipeline = ch.pipeline();
        Http3RequestStreamDecodeStateValidator decodeStateValidator = new Http3RequestStreamDecodeStateValidator();
        // Add the encoder and decoder in the pipeline, so we can handle Http3Frames
        pipeline.addLast(connectionHandler.newCodec(NO_STATE, decodeStateValidator));
        pipeline.addLast(decodeStateValidator);
        // Add the handler that will validate what we write and receive on this stream.
        pipeline.addLast(connectionHandler.newPushStreamValidationHandler(ch, decodeStateValidator));
        initPushStream(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/Http3PushStreamClientInitializer.java.
Where is initChannel() defined?
initChannel() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3PushStreamClientInitializer.java at line 31.
What does initChannel() call?
initChannel() calls 1 function(s): initPushStream.

Analyze Your Own Codebase

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

Try Supermodel Free