Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

example/src/main/java/io/netty/example/spdy/client/SpdyClientInitializer.java lines 42–53

    @Override
    public void initChannel(SocketChannel ch) {
        ChannelPipeline pipeline = ch.pipeline();
        pipeline.addLast("ssl", sslCtx.newHandler(ch.alloc()));
        pipeline.addLast("spdyFrameCodec", new SpdyFrameCodec(SPDY_3_1));
        pipeline.addLast("spdyFrameLogger", new SpdyFrameLogger(INFO));
        pipeline.addLast("spdySessionHandler", new SpdySessionHandler(SPDY_3_1, false));
        pipeline.addLast("spdyHttpEncoder", new SpdyHttpEncoder(SPDY_3_1));
        pipeline.addLast("spdyHttpDecoder", new SpdyHttpDecoder(SPDY_3_1, MAX_SPDY_CONTENT_LENGTH));
        pipeline.addLast("spdyStreamIdHandler", new SpdyClientStreamIdHandler());
        pipeline.addLast("httpHandler", httpResponseHandler);
    }

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/spdy/client/SpdyClientInitializer.java.
Where is initChannel() defined?
initChannel() is defined in example/src/main/java/io/netty/example/spdy/client/SpdyClientInitializer.java at line 42.

Analyze Your Own Codebase

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

Try Supermodel Free