ServerHandler Class — netty Architecture
Architecture documentation for the ServerHandler class in JdkDelegatingPrivateKeyMethodTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5a01932f_f7d8_0511_74ea_3f2389ec4eb8["ServerHandler"] 5573b2bd_79a7_f28c_5ebe_732d956afd9a["JdkDelegatingPrivateKeyMethodTest.java"] 5a01932f_f7d8_0511_74ea_3f2389ec4eb8 -->|defined in| 5573b2bd_79a7_f28c_5ebe_732d956afd9a 7dd57c9f_a4d2_13e1_0ccd_980896250dd7["ServerHandler()"] 5a01932f_f7d8_0511_74ea_3f2389ec4eb8 -->|method| 7dd57c9f_a4d2_13e1_0ccd_980896250dd7 79f083eb_1027_d8aa_b2e3_c4e6dacf65ff["channelRead()"] 5a01932f_f7d8_0511_74ea_3f2389ec4eb8 -->|method| 79f083eb_1027_d8aa_b2e3_c4e6dacf65ff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethodTest.java lines 532–547
@ChannelHandler.Sharable
private static final class ServerHandler extends ChannelInboundHandlerAdapter {
static final ChannelInboundHandler INSTANCE = new ServerHandler();
private ServerHandler() {
}
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) {
// Echo the message back and close
ctx.writeAndFlush(msg).addListener(future -> {
ctx.close();
});
}
}
Source
Frequently Asked Questions
What is the ServerHandler class?
ServerHandler is a class in the netty codebase, defined in handler/src/test/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethodTest.java.
Where is ServerHandler defined?
ServerHandler is defined in handler/src/test/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethodTest.java at line 532.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free