LocalEchoServerHandler Class — netty Architecture
Architecture documentation for the LocalEchoServerHandler class in LocalEchoServerHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 18ec5d4e_9871_04ee_df60_02da030b4ef6["LocalEchoServerHandler"] 99edcf26_8440_a934_19eb_de59c34d6712["LocalEchoServerHandler.java"] 18ec5d4e_9871_04ee_df60_02da030b4ef6 -->|defined in| 99edcf26_8440_a934_19eb_de59c34d6712 9a61bc70_22b0_5024_a2b5_d524bab6b6c5["channelRead()"] 18ec5d4e_9871_04ee_df60_02da030b4ef6 -->|method| 9a61bc70_22b0_5024_a2b5_d524bab6b6c5 0e60a745_b88c_e613_c452_c68ee67a8d86["channelReadComplete()"] 18ec5d4e_9871_04ee_df60_02da030b4ef6 -->|method| 0e60a745_b88c_e613_c452_c68ee67a8d86 d18fd5a3_2c58_f0ba_b32f_e9e2358a5853["exceptionCaught()"] 18ec5d4e_9871_04ee_df60_02da030b4ef6 -->|method| d18fd5a3_2c58_f0ba_b32f_e9e2358a5853
Relationship Graph
Source Code
example/src/main/java/io/netty/example/localecho/LocalEchoServerHandler.java lines 21–39
public class LocalEchoServerHandler extends ChannelInboundHandlerAdapter {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) {
// Write back as received
ctx.write(msg);
}
@Override
public void channelReadComplete(ChannelHandlerContext ctx) {
ctx.flush();
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
cause.printStackTrace();
ctx.close();
}
}
Source
Frequently Asked Questions
What is the LocalEchoServerHandler class?
LocalEchoServerHandler is a class in the netty codebase, defined in example/src/main/java/io/netty/example/localecho/LocalEchoServerHandler.java.
Where is LocalEchoServerHandler defined?
LocalEchoServerHandler is defined in example/src/main/java/io/netty/example/localecho/LocalEchoServerHandler.java at line 21.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free