Home / Class/ Http2FrameAdapter Class — netty Architecture

Http2FrameAdapter Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  c9fca67a_5fa0_c00b_871f_38edcf852358["Http2FrameAdapter"]
  91babba0_79ff_4f94_661e_a9afb7883791["Http2FrameAdapter.java"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|defined in| 91babba0_79ff_4f94_661e_a9afb7883791
  b04d6c4e_b4dc_6013_102e_8bf43f4cf308["onDataRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| b04d6c4e_b4dc_6013_102e_8bf43f4cf308
  ae8c3944_fd5e_8392_dd86_5b386e4c169e["onHeadersRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| ae8c3944_fd5e_8392_dd86_5b386e4c169e
  a1dffccb_2b50_decf_acf6_5309e0da2ae1["onPriorityRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| a1dffccb_2b50_decf_acf6_5309e0da2ae1
  db68ec62_1c43_ebab_8aaf_bb6d4c1ec5db["onRstStreamRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| db68ec62_1c43_ebab_8aaf_bb6d4c1ec5db
  cd5ecf72_e27d_9ec0_e020_5855d12c7465["onSettingsAckRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| cd5ecf72_e27d_9ec0_e020_5855d12c7465
  2a62bf6e_cd9a_3811_c693_c9bf01eebf7e["onSettingsRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| 2a62bf6e_cd9a_3811_c693_c9bf01eebf7e
  56fb00dc_9064_e0bf_22be_dbd5fdabacf2["onPingRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| 56fb00dc_9064_e0bf_22be_dbd5fdabacf2
  9addb51a_7a06_4d7c_29e9_5d5a76811d32["onPingAckRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| 9addb51a_7a06_4d7c_29e9_5d5a76811d32
  6bfb70b7_4062_0920_c481_86df92bdaaa3["onPushPromiseRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| 6bfb70b7_4062_0920_c481_86df92bdaaa3
  15e99ab4_e536_02f3_45a9_3d5e470c062f["onGoAwayRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| 15e99ab4_e536_02f3_45a9_3d5e470c062f
  d4571508_33c3_202c_8d27_9aa282375e40["onWindowUpdateRead()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| d4571508_33c3_202c_8d27_9aa282375e40
  00752c31_b5fa_a426_9b0f_0510aaae49d3["onUnknownFrame()"]
  c9fca67a_5fa0_c00b_871f_38edcf852358 -->|method| 00752c31_b5fa_a426_9b0f_0510aaae49d3

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameAdapter.java lines 23–88

public class Http2FrameAdapter implements Http2FrameListener {

    @Override
    public int onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding,
            boolean endOfStream) throws Http2Exception {
        return data.readableBytes() + padding;
    }

    @Override
    public void onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers,
            int padding, boolean endStream) throws Http2Exception {
    }

    @Override
    public void onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers,
            int streamDependency, short weight, boolean exclusive, int padding, boolean endStream)
            throws Http2Exception {
    }

    @Override
    public void onPriorityRead(ChannelHandlerContext ctx, int streamId, int streamDependency,
            short weight, boolean exclusive) throws Http2Exception {
    }

    @Override
    public void onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode)
            throws Http2Exception {
    }

    @Override
    public void onSettingsAckRead(ChannelHandlerContext ctx) throws Http2Exception {
    }

    @Override
    public void onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings)
            throws Http2Exception {
    }

    @Override
    public void onPingRead(ChannelHandlerContext ctx, long data) throws Http2Exception {
    }

    @Override
    public void onPingAckRead(ChannelHandlerContext ctx, long data) throws Http2Exception {
    }

    @Override
    public void onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId,
            Http2Headers headers, int padding) throws Http2Exception {
    }

    @Override
    public void onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode,
            ByteBuf debugData) throws Http2Exception {
    }

    @Override
    public void onWindowUpdateRead(ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
                    throws Http2Exception {
    }

    @Override
    public void onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags,
            ByteBuf payload) {
    }
}

Frequently Asked Questions

What is the Http2FrameAdapter class?
Http2FrameAdapter is a class in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameAdapter.java.
Where is Http2FrameAdapter defined?
Http2FrameAdapter is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2FrameAdapter.java at line 23.

Analyze Your Own Codebase

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

Try Supermodel Free