BackendHandler Class — netty Architecture
Architecture documentation for the BackendHandler class in ProxyServer.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD e4ce49b7_9836_41c5_4698_f50a4892c4fb["BackendHandler"] db43fe47_37b6_43cd_123c_8899d4fb6e75["ProxyServer.java"] e4ce49b7_9836_41c5_4698_f50a4892c4fb -->|defined in| db43fe47_37b6_43cd_123c_8899d4fb6e75 a4ee6e56_0ea3_0bab_f589_97c4f1f0ac3f["BackendHandler()"] e4ce49b7_9836_41c5_4698_f50a4892c4fb -->|method| a4ee6e56_0ea3_0bab_f589_97c4f1f0ac3f 1e95531b_18ac_adde_9b38_01ca2408a9d8["channelRead()"] e4ce49b7_9836_41c5_4698_f50a4892c4fb -->|method| 1e95531b_18ac_adde_9b38_01ca2408a9d8 3fdecf1c_73d5_b31c_d877_d5490aa97763["channelReadComplete()"] e4ce49b7_9836_41c5_4698_f50a4892c4fb -->|method| 3fdecf1c_73d5_b31c_d877_d5490aa97763 1cb76ee2_31fc_b57b_eb87_12d0c86a4a23["channelInactive()"] e4ce49b7_9836_41c5_4698_f50a4892c4fb -->|method| 1cb76ee2_31fc_b57b_eb87_12d0c86a4a23 70de6923_bea6_a1c8_04d7_71fb5575dd8d["exceptionCaught()"] e4ce49b7_9836_41c5_4698_f50a4892c4fb -->|method| 70de6923_bea6_a1c8_04d7_71fb5575dd8d
Relationship Graph
Source Code
handler-proxy/src/test/java/io/netty/handler/proxy/ProxyServer.java lines 232–260
private final class BackendHandler extends ChannelInboundHandlerAdapter {
private final ChannelHandlerContext frontend;
BackendHandler(ChannelHandlerContext frontend) {
this.frontend = frontend;
}
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
frontend.write(msg);
}
@Override
public void channelReadComplete(ChannelHandlerContext ctx) throws Exception {
frontend.flush();
}
@Override
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
frontend.close();
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
recordException(cause);
ctx.close();
}
}
Source
Frequently Asked Questions
What is the BackendHandler class?
BackendHandler is a class in the netty codebase, defined in handler-proxy/src/test/java/io/netty/handler/proxy/ProxyServer.java.
Where is BackendHandler defined?
BackendHandler is defined in handler-proxy/src/test/java/io/netty/handler/proxy/ProxyServer.java at line 232.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free