Home / Class/ Http2EventAdapter Class — netty Architecture

Http2EventAdapter Class — netty Architecture

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

Entity Profile

Dependency Diagram

graph TD
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e["Http2EventAdapter"]
  0bedfa2f_ee8b_7512_4514_c1489f38fbc1["Http2EventAdapter.java"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|defined in| 0bedfa2f_ee8b_7512_4514_c1489f38fbc1
  e1923359_4ac7_e057_4ada_1ac48790d457["onDataRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| e1923359_4ac7_e057_4ada_1ac48790d457
  01b5c1d5_f336_d5a6_b9fb_2a86e2b715d5["onHeadersRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| 01b5c1d5_f336_d5a6_b9fb_2a86e2b715d5
  fa283e3e_97cc_a965_2bac_1944aa71c29d["onPriorityRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| fa283e3e_97cc_a965_2bac_1944aa71c29d
  4a85316b_727f_76ae_de0b_7cede92b8fdd["onRstStreamRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| 4a85316b_727f_76ae_de0b_7cede92b8fdd
  e0e75741_07db_e8d1_227b_98400f545f3a["onSettingsAckRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| e0e75741_07db_e8d1_227b_98400f545f3a
  16007ae5_b990_b445_c1ef_18de918c1cb4["onSettingsRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| 16007ae5_b990_b445_c1ef_18de918c1cb4
  9448ddbd_9c60_a870_45e9_0b29214f0f00["onPingRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| 9448ddbd_9c60_a870_45e9_0b29214f0f00
  e387cb95_e01b_c676_62eb_da2034d6cb3e["onPingAckRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| e387cb95_e01b_c676_62eb_da2034d6cb3e
  a9d0e883_bae7_fa07_0abb_82a588bada40["onPushPromiseRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| a9d0e883_bae7_fa07_0abb_82a588bada40
  b1f568e5_13b0_f8a3_d275_279c1bbd540d["onGoAwayRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| b1f568e5_13b0_f8a3_d275_279c1bbd540d
  d12e01c1_cc78_e5ba_6be4_a1d7d6df3df2["onWindowUpdateRead()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| d12e01c1_cc78_e5ba_6be4_a1d7d6df3df2
  60a201b8_b019_f3b5_fb37_3e47371e24a2["onUnknownFrame()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| 60a201b8_b019_f3b5_fb37_3e47371e24a2
  0064334f_d8ac_ab0e_ce51_c847b65c134e["onStreamAdded()"]
  edfd3ccd_9a65_4928_b57c_dbb0bcde459e -->|method| 0064334f_d8ac_ab0e_ce51_c847b65c134e

Relationship Graph

Source Code

codec-http2/src/main/java/io/netty/handler/codec/http2/Http2EventAdapter.java lines 24–113

public class Http2EventAdapter implements Http2Connection.Listener, 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) throws Http2Exception {
    }

    @Override
    public void onStreamAdded(Http2Stream stream) {
    }

    @Override
    public void onStreamActive(Http2Stream stream) {
    }

    @Override
    public void onStreamHalfClosed(Http2Stream stream) {
    }

    @Override
    public void onStreamClosed(Http2Stream stream) {
    }

    @Override
    public void onStreamRemoved(Http2Stream stream) {
    }

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free