channelRead0() — netty Function Reference
Architecture documentation for the channelRead0() function in StompChatHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5ef12430_b789_c7f8_301d_8283d302e997["channelRead0()"] f937e446_8aba_2036_93fc_8020adb1953f["StompChatHandler"] 5ef12430_b789_c7f8_301d_8283d302e997 -->|defined in| f937e446_8aba_2036_93fc_8020adb1953f f5104c6e_035e_0b9d_444a_4cc359d713bf["sendErrorFrame()"] 5ef12430_b789_c7f8_301d_8283d302e997 -->|calls| f5104c6e_035e_0b9d_444a_4cc359d713bf 79a0cee0_3fe1_bbec_8430_245727dc0633["onConnect()"] 5ef12430_b789_c7f8_301d_8283d302e997 -->|calls| 79a0cee0_3fe1_bbec_8430_245727dc0633 91529c34_98b8_0877_0e3c_4566c29cc41c["onSubscribe()"] 5ef12430_b789_c7f8_301d_8283d302e997 -->|calls| 91529c34_98b8_0877_0e3c_4566c29cc41c e7e2a1ff_4014_45fc_319b_33586aa4f65b["onSend()"] 5ef12430_b789_c7f8_301d_8283d302e997 -->|calls| e7e2a1ff_4014_45fc_319b_33586aa4f65b 300a2492_839b_f301_5856_263dc6251275["onUnsubscribe()"] 5ef12430_b789_c7f8_301d_8283d302e997 -->|calls| 300a2492_839b_f301_5856_263dc6251275 81e01bd7_15ff_1fba_87da_191986d1898d["onDisconnect()"] 5ef12430_b789_c7f8_301d_8283d302e997 -->|calls| 81e01bd7_15ff_1fba_87da_191986d1898d style 5ef12430_b789_c7f8_301d_8283d302e997 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/stomp/websocket/StompChatHandler.java lines 45–74
@Override
protected void channelRead0(ChannelHandlerContext ctx, StompFrame inboundFrame) throws Exception {
DecoderResult decoderResult = inboundFrame.decoderResult();
if (decoderResult.isFailure()) {
sendErrorFrame("rejected frame", decoderResult.toString(), ctx);
return;
}
switch (inboundFrame.command()) {
case STOMP:
case CONNECT:
onConnect(ctx, inboundFrame);
break;
case SUBSCRIBE:
onSubscribe(ctx, inboundFrame);
break;
case SEND:
onSend(ctx, inboundFrame);
break;
case UNSUBSCRIBE:
onUnsubscribe(ctx, inboundFrame);
break;
case DISCONNECT:
onDisconnect(ctx, inboundFrame);
break;
default:
sendErrorFrame("unsupported command",
"Received unsupported command " + inboundFrame.command(), ctx);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does channelRead0() do?
channelRead0() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/stomp/websocket/StompChatHandler.java.
Where is channelRead0() defined?
channelRead0() is defined in example/src/main/java/io/netty/example/stomp/websocket/StompChatHandler.java at line 45.
What does channelRead0() call?
channelRead0() calls 6 function(s): onConnect, onDisconnect, onSend, onSubscribe, onUnsubscribe, sendErrorFrame.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free