Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  519c329e_2a66_b02e_b555_bfcaedd468d3["initChannel()"]
  31903fce_a1ec_29ca_f2f0_bba7f6435f08["HttpUploadClientInitializer"]
  519c329e_2a66_b02e_b555_bfcaedd468d3 -->|defined in| 31903fce_a1ec_29ca_f2f0_bba7f6435f08
  style 519c329e_2a66_b02e_b555_bfcaedd468d3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http/upload/HttpUploadClientInitializer.java lines 36–53

    @Override
    public void initChannel(SocketChannel ch) {
        ChannelPipeline pipeline = ch.pipeline();

        if (sslCtx != null) {
            pipeline.addLast("ssl", sslCtx.newHandler(ch.alloc()));
        }

        pipeline.addLast("codec", new HttpClientCodec());

        // Remove the following line if you don't want automatic content decompression.
        pipeline.addLast("inflater", new HttpContentDecompressor(MAX_CONTENT_LENGTH));

        // to be used since huge file transfer
        pipeline.addLast("chunkedWriter", new ChunkedWriteHandler());

        pipeline.addLast("handler", new HttpUploadClientHandler());
    }

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

Analyze Your Own Codebase

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

Try Supermodel Free