Home / Function/ initChannel() — netty Function Reference

initChannel() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5902e570_f533_6567_30a5_75308b877b6a["initChannel()"]
  2cbc6d43_858f_75f6_fefb_79edcd5fc047["WebSocketServerInitializer"]
  5902e570_f533_6567_30a5_75308b877b6a -->|defined in| 2cbc6d43_858f_75f6_fefb_79edcd5fc047
  style 5902e570_f533_6567_30a5_75308b877b6a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

example/src/main/java/io/netty/example/http/websocketx/benchmarkserver/WebSocketServerInitializer.java lines 37–46

    @Override
    public void initChannel(SocketChannel ch) throws Exception {
        ChannelPipeline pipeline = ch.pipeline();
        if (sslCtx != null) {
            pipeline.addLast(sslCtx.newHandler(ch.alloc()));
        }
        pipeline.addLast(new HttpServerCodec());
        pipeline.addLast(new HttpObjectAggregator(MAX_CONTENT_LENGTH));
        pipeline.addLast(new WebSocketServerHandler());
    }

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/websocketx/benchmarkserver/WebSocketServerInitializer.java.
Where is initChannel() defined?
initChannel() is defined in example/src/main/java/io/netty/example/http/websocketx/benchmarkserver/WebSocketServerInitializer.java at line 37.

Analyze Your Own Codebase

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

Try Supermodel Free