ClientHandler Class — netty Architecture
Architecture documentation for the ClientHandler class in SocketSslGreetingTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 66e89978_a142_df82_01d1_1aeb097c9792["ClientHandler"] 4fe0c873_7a28_068c_869b_b9cc2be31bae["SocketSslGreetingTest.java"] 66e89978_a142_df82_01d1_1aeb097c9792 -->|defined in| 4fe0c873_7a28_068c_869b_b9cc2be31bae dec95731_89d0_adfa_467b_692486c430b0["channelRead0()"] 66e89978_a142_df82_01d1_1aeb097c9792 -->|method| dec95731_89d0_adfa_467b_692486c430b0 559ebb4b_b191_c496_eab2_0d6796a061c7["exceptionCaught()"] 66e89978_a142_df82_01d1_1aeb097c9792 -->|method| 559ebb4b_b191_c496_eab2_0d6796a061c7
Relationship Graph
Source Code
testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketSslGreetingTest.java lines 192–215
private static class ClientHandler extends SimpleChannelInboundHandler<ByteBuf> {
final AtomicReference<Throwable> exception = new AtomicReference<Throwable>();
final CountDownLatch latch = new CountDownLatch(1);
@Override
public void channelRead0(ChannelHandlerContext ctx, ByteBuf buf) throws Exception {
assertEquals('a', buf.readByte());
assertFalse(buf.isReadable());
latch.countDown();
ctx.close();
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx,
Throwable cause) throws Exception {
if (logger.isWarnEnabled()) {
logger.warn("Unexpected exception from the client side", cause);
}
exception.compareAndSet(null, cause);
ctx.close();
}
}
Source
Frequently Asked Questions
What is the ClientHandler class?
ClientHandler is a class in the netty codebase, defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketSslGreetingTest.java.
Where is ClientHandler defined?
ClientHandler is defined in testsuite/src/main/java/io/netty/testsuite/transport/socket/SocketSslGreetingTest.java at line 192.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free