CustomTextFrameHandler Class — netty Architecture
Architecture documentation for the CustomTextFrameHandler class in WebSocketServerProtocolHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0ae916d7_2059_d5f1_a830_abddea616bee["CustomTextFrameHandler"] be0e257a_741a_5c7f_593d_0534daf86a59["WebSocketServerProtocolHandlerTest.java"] 0ae916d7_2059_d5f1_a830_abddea616bee -->|defined in| be0e257a_741a_5c7f_593d_0534daf86a59 b88cc14b_1d09_2f05_08cf_74d57275d106["channelRead()"] 0ae916d7_2059_d5f1_a830_abddea616bee -->|method| b88cc14b_1d09_2f05_08cf_74d57275d106 cfb007d4_df6a_b9b7_0bc5_34c00308046a["String()"] 0ae916d7_2059_d5f1_a830_abddea616bee -->|method| cfb007d4_df6a_b9b7_0bc5_34c00308046a
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java lines 505–518
private static class CustomTextFrameHandler extends ChannelInboundHandlerAdapter {
private String content;
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) {
assertNull(content);
content = "processed: " + ((TextWebSocketFrame) msg).text();
ReferenceCountUtil.release(msg);
}
String getContent() {
return content;
}
}
Source
Frequently Asked Questions
What is the CustomTextFrameHandler class?
CustomTextFrameHandler is a class in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java.
Where is CustomTextFrameHandler defined?
CustomTextFrameHandler is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandlerTest.java at line 505.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free