Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ff062f25_3104_30ff_00bd_7656cbb235e3["initChannel()"]
  3d194589_1edf_6e5a_e7b1_3add79b11968["Http2ClientInitializer"]
  ff062f25_3104_30ff_00bd_7656cbb235e3 -->|defined in| 3d194589_1edf_6e5a_e7b1_3add79b11968
  cbd7be89_3c75_1446_4abb_98fd4f557bf6["HttpResponseHandler()"]
  ff062f25_3104_30ff_00bd_7656cbb235e3 -->|calls| cbd7be89_3c75_1446_4abb_98fd4f557bf6
  2541efa9_c7a2_c1da_7edb_099b45e092cd["Http2SettingsHandler()"]
  ff062f25_3104_30ff_00bd_7656cbb235e3 -->|calls| 2541efa9_c7a2_c1da_7edb_099b45e092cd
  91f0fece_507b_58de_8f7b_b73b6467c862["configureSsl()"]
  ff062f25_3104_30ff_00bd_7656cbb235e3 -->|calls| 91f0fece_507b_58de_8f7b_b73b6467c862
  22eedc29_6e66_560d_c74e_292ba5f1eb16["configureClearText()"]
  ff062f25_3104_30ff_00bd_7656cbb235e3 -->|calls| 22eedc29_6e66_560d_c74e_292ba5f1eb16
  style ff062f25_3104_30ff_00bd_7656cbb235e3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http2/helloworld/client/Http2ClientInitializer.java lines 62–83

    @Override
    public void initChannel(SocketChannel ch) throws Exception {
        final Http2Connection connection = new DefaultHttp2Connection(false);
        connectionHandler = new HttpToHttp2ConnectionHandlerBuilder()
                .frameListener(new DelegatingDecompressorFrameListener(
                        connection,
                        new InboundHttp2ToHttpAdapterBuilder(connection)
                                .maxContentLength(maxContentLength)
                                .propagateSettings(true)
                                .build(),
                        maxContentLength))
                .frameLogger(logger)
                .connection(connection)
                .build();
        responseHandler = new HttpResponseHandler();
        settingsHandler = new Http2SettingsHandler(ch.newPromise());
        if (sslCtx != null) {
            configureSsl(ch);
        } else {
            configureClearText(ch);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does initChannel() do?
initChannel() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/http2/helloworld/client/Http2ClientInitializer.java.
Where is initChannel() defined?
initChannel() is defined in example/src/main/java/io/netty/example/http2/helloworld/client/Http2ClientInitializer.java at line 62.
What does initChannel() call?
initChannel() calls 4 function(s): Http2SettingsHandler, HttpResponseHandler, configureClearText, configureSsl.

Analyze Your Own Codebase

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

Try Supermodel Free