Home / Class/ Http3FrameTypeInboundValidationHandler Class — netty Architecture

Http3FrameTypeInboundValidationHandler Class — netty Architecture

Architecture documentation for the Http3FrameTypeInboundValidationHandler class in Http3FrameTypeInboundValidationHandler.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  c84f521f_ff90_8b23_d724_352043684eca["Http3FrameTypeInboundValidationHandler"]
  96aea1e2_cec8_3893_d370_ece258ade119["Http3FrameTypeInboundValidationHandler.java"]
  c84f521f_ff90_8b23_d724_352043684eca -->|defined in| 96aea1e2_cec8_3893_d370_ece258ade119
  cb9a21a3_493a_ef65_7c75_d82318d2728b["Http3FrameTypeInboundValidationHandler()"]
  c84f521f_ff90_8b23_d724_352043684eca -->|method| cb9a21a3_493a_ef65_7c75_d82318d2728b
  362ac3d3_90f2_c534_7c47_9c453a6945ca["channelRead()"]
  c84f521f_ff90_8b23_d724_352043684eca -->|method| 362ac3d3_90f2_c534_7c47_9c453a6945ca
  3654620f_53f6_9b09_3f31_32b472a5e8fc["readFrameDiscarded()"]
  c84f521f_ff90_8b23_d724_352043684eca -->|method| 3654620f_53f6_9b09_3f31_32b472a5e8fc

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameTypeInboundValidationHandler.java lines 25–50

class Http3FrameTypeInboundValidationHandler<T extends Http3Frame> extends ChannelInboundHandlerAdapter {

    protected final Class<T> frameType;

    Http3FrameTypeInboundValidationHandler(Class<T> frameType) {
        this.frameType = ObjectUtil.checkNotNull(frameType, "frameType");
    }

    @Override
    public final void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        final T frame = validateFrameRead(frameType, msg);
        if (frame != null) {
            channelRead(ctx, frame);
        } else {
            readFrameDiscarded(ctx, msg);
        }
    }

    void channelRead(ChannelHandlerContext ctx, T frame) throws Exception {
        ctx.fireChannelRead(frame);
    }

    void readFrameDiscarded(ChannelHandlerContext ctx, Object discardedFrame) {
        frameTypeUnexpected(ctx, discardedFrame);
    }
}

Frequently Asked Questions

What is the Http3FrameTypeInboundValidationHandler class?
Http3FrameTypeInboundValidationHandler is a class in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameTypeInboundValidationHandler.java.
Where is Http3FrameTypeInboundValidationHandler defined?
Http3FrameTypeInboundValidationHandler is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/Http3FrameTypeInboundValidationHandler.java at line 25.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free