Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b9da2ae0_601b_8b3f_927b_974a19bc8c3f["initChannel()"]
  5be3f155_a246_09f6_5428_fa3064782022["HttpStaticFileServerInitializer"]
  b9da2ae0_601b_8b3f_927b_974a19bc8c3f -->|defined in| 5be3f155_a246_09f6_5428_fa3064782022
  style b9da2ae0_601b_8b3f_927b_974a19bc8c3f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http/file/HttpStaticFileServerInitializer.java lines 34–44

    @Override
    public void initChannel(SocketChannel ch) {
        ChannelPipeline pipeline = ch.pipeline();
        if (sslCtx != null) {
            pipeline.addLast(sslCtx.newHandler(ch.alloc()));
        }
        pipeline.addLast(new HttpServerCodec());
        pipeline.addLast(new HttpObjectAggregator(65536));
        pipeline.addLast(new ChunkedWriteHandler());
        pipeline.addLast(new HttpStaticFileServerHandler());
    }

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

Analyze Your Own Codebase

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

Try Supermodel Free