StreamCreationHandler Class — netty Architecture
Architecture documentation for the StreamCreationHandler class in QuicStreamFrameTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 10b1edc2_b78b_f006_0aca_fc8e9e7dba61["StreamCreationHandler"] 893fba38_068a_e633_3ac3_b01e62e27f16["QuicStreamFrameTest.java"] 10b1edc2_b78b_f006_0aca_fc8e9e7dba61 -->|defined in| 893fba38_068a_e633_3ac3_b01e62e27f16 31f176a0_a3e1_1fe9_9056_4b264bdcb055["StreamCreationHandler()"] 10b1edc2_b78b_f006_0aca_fc8e9e7dba61 -->|method| 31f176a0_a3e1_1fe9_9056_4b264bdcb055 feaef1fb_e4d2_7bc8_c1c4_bc6f399cc1a7["channelActive()"] 10b1edc2_b78b_f006_0aca_fc8e9e7dba61 -->|method| feaef1fb_e4d2_7bc8_c1c4_bc6f399cc1a7
Relationship Graph
Source Code
codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamFrameTest.java lines 77–97
private static final class StreamCreationHandler extends QuicChannelValidationHandler {
private final QuicStreamType type;
StreamCreationHandler(QuicStreamType type) {
this.type = type;
}
@Override
public void channelActive(ChannelHandlerContext ctx) {
super.channelActive(ctx);
QuicChannel channel = (QuicChannel) ctx.channel();
channel.createStream(type, new ChannelInboundHandlerAdapter() {
@Override
public void channelActive(ChannelHandlerContext ctx) {
// Do the write and close the channel
ctx.writeAndFlush(Unpooled.buffer().writeZero(8))
.addListener(QuicStreamChannel.SHUTDOWN_OUTPUT);
}
});
}
}
Source
Frequently Asked Questions
What is the StreamCreationHandler class?
StreamCreationHandler is a class in the netty codebase, defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamFrameTest.java.
Where is StreamCreationHandler defined?
StreamCreationHandler is defined in codec-native-quic/src/test/java/io/netty/handler/codec/quic/QuicStreamFrameTest.java at line 77.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free