Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8a52ddd3_6fc9_0a4c_cd61_bbf35b2494f3["initChannel()"]
  e70fd311_cdaa_ee52_e48f_d6de1bf9b138["HttpHelloWorldServerInitializer"]
  8a52ddd3_6fc9_0a4c_cd61_bbf35b2494f3 -->|defined in| e70fd311_cdaa_ee52_e48f_d6de1bf9b138
  style 8a52ddd3_6fc9_0a4c_cd61_bbf35b2494f3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServerInitializer.java lines 35–45

    @Override
    public void initChannel(SocketChannel ch) {
        ChannelPipeline p = ch.pipeline();
        if (sslCtx != null) {
            p.addLast(sslCtx.newHandler(ch.alloc()));
        }
        p.addLast(new HttpServerCodec());
        p.addLast(new HttpContentCompressor((CompressionOptions[]) null));
        p.addLast(new HttpServerExpectContinueHandler());
        p.addLast(new HttpHelloWorldServerHandler());
    }

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/http/helloworld/HttpHelloWorldServerInitializer.java.
Where is initChannel() defined?
initChannel() is defined in example/src/main/java/io/netty/example/http/helloworld/HttpHelloWorldServerInitializer.java at line 35.

Analyze Your Own Codebase

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

Try Supermodel Free