initChannel() — netty Function Reference
Architecture documentation for the initChannel() function in HAProxyServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 81b351b8_78e8_38f0_b31b_f3cae09d22ca["initChannel()"] 6a92349f_e94c_9b89_fa2c_3b2ea8e54630["HAProxyServerInitializer"] 81b351b8_78e8_38f0_b31b_f3cae09d22ca -->|defined in| 6a92349f_e94c_9b89_fa2c_3b2ea8e54630 style 81b351b8_78e8_38f0_b31b_f3cae09d22ca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/haproxy/HAProxyServer.java lines 54–69
@Override
public void initChannel(SocketChannel ch) throws Exception {
ch.pipeline().addLast(
new LoggingHandler(LogLevel.DEBUG),
new HAProxyMessageDecoder(),
new SimpleChannelInboundHandler() {
@Override
protected void channelRead0(ChannelHandlerContext ctx, Object msg) throws Exception {
if (msg instanceof HAProxyMessage) {
System.out.println("proxy message: " + msg);
} else if (msg instanceof ByteBuf) {
System.out.println("bytebuf message: " + ByteBufUtil.prettyHexDump((ByteBuf) msg));
}
}
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does initChannel() do?
initChannel() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/haproxy/HAProxyServer.java.
Where is initChannel() defined?
initChannel() is defined in example/src/main/java/io/netty/example/haproxy/HAProxyServer.java at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free