Class Http2ServerHandler

java.lang.Object
io.micronaut.http.server.netty.handler.Http2ServerHandler
All Implemented Interfaces:
io.netty.handler.codec.http2.Http2FrameListener

@Internal public final class Http2ServerHandler extends Object implements io.netty.handler.codec.http2.Http2FrameListener
HTTP/2-specific server handler.
Since:
4.4.0
Author:
Jonas Konrad
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Http2ConnectionHandler implementation containing the Http2ServerHandler.
    static final class 
    Http2ConnectionHandler builder for the Http2ServerHandler.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    onDataRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endOfStream)
     
    void
    onGoAwayRead(io.netty.channel.ChannelHandlerContext ctx, int lastStreamId, long errorCode, io.netty.buffer.ByteBuf debugData)
     
    void
    onHeadersRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endOfStream)
     
    void
    onHeadersRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream)
     
    void
    onPingAckRead(io.netty.channel.ChannelHandlerContext ctx, long data)
     
    void
    onPingRead(io.netty.channel.ChannelHandlerContext ctx, long data)
     
    void
    onPriorityRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)
     
    void
    onPushPromiseRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers, int padding)
     
    void
    onRstStreamRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode)
     
    void
    onSettingsAckRead(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    onSettingsRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Settings settings)
     
    void
    onUnknownFrame(io.netty.channel.ChannelHandlerContext ctx, byte frameType, int streamId, io.netty.handler.codec.http2.Http2Flags flags, io.netty.buffer.ByteBuf payload)
     
    void
    onWindowUpdateRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • onDataRead

      public int onDataRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endOfStream) throws io.netty.handler.codec.http2.Http2Exception
      Specified by:
      onDataRead in interface io.netty.handler.codec.http2.Http2FrameListener
      Throws:
      io.netty.handler.codec.http2.Http2Exception
    • onHeadersRead

      public void onHeadersRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endOfStream) throws io.netty.handler.codec.http2.Http2Exception
      Specified by:
      onHeadersRead in interface io.netty.handler.codec.http2.Http2FrameListener
      Throws:
      io.netty.handler.codec.http2.Http2Exception
    • onHeadersRead

      public void onHeadersRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream) throws io.netty.handler.codec.http2.Http2Exception
      Specified by:
      onHeadersRead in interface io.netty.handler.codec.http2.Http2FrameListener
      Throws:
      io.netty.handler.codec.http2.Http2Exception
    • onPriorityRead

      public void onPriorityRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)
      Specified by:
      onPriorityRead in interface io.netty.handler.codec.http2.Http2FrameListener
    • onRstStreamRead

      public void onRstStreamRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode) throws io.netty.handler.codec.http2.Http2Exception
      Specified by:
      onRstStreamRead in interface io.netty.handler.codec.http2.Http2FrameListener
      Throws:
      io.netty.handler.codec.http2.Http2Exception
    • onSettingsAckRead

      public void onSettingsAckRead(io.netty.channel.ChannelHandlerContext ctx)
      Specified by:
      onSettingsAckRead in interface io.netty.handler.codec.http2.Http2FrameListener
    • onSettingsRead

      public void onSettingsRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Settings settings)
      Specified by:
      onSettingsRead in interface io.netty.handler.codec.http2.Http2FrameListener
    • onPingRead

      public void onPingRead(io.netty.channel.ChannelHandlerContext ctx, long data)
      Specified by:
      onPingRead in interface io.netty.handler.codec.http2.Http2FrameListener
    • onPingAckRead

      public void onPingAckRead(io.netty.channel.ChannelHandlerContext ctx, long data)
      Specified by:
      onPingAckRead in interface io.netty.handler.codec.http2.Http2FrameListener
    • onPushPromiseRead

      public void onPushPromiseRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers, int padding)
      Specified by:
      onPushPromiseRead in interface io.netty.handler.codec.http2.Http2FrameListener
    • onGoAwayRead

      public void onGoAwayRead(io.netty.channel.ChannelHandlerContext ctx, int lastStreamId, long errorCode, io.netty.buffer.ByteBuf debugData) throws io.netty.handler.codec.http2.Http2Exception
      Specified by:
      onGoAwayRead in interface io.netty.handler.codec.http2.Http2FrameListener
      Throws:
      io.netty.handler.codec.http2.Http2Exception
    • onWindowUpdateRead

      public void onWindowUpdateRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
      Specified by:
      onWindowUpdateRead in interface io.netty.handler.codec.http2.Http2FrameListener
    • onUnknownFrame

      public void onUnknownFrame(io.netty.channel.ChannelHandlerContext ctx, byte frameType, int streamId, io.netty.handler.codec.http2.Http2Flags flags, io.netty.buffer.ByteBuf payload)
      Specified by:
      onUnknownFrame in interface io.netty.handler.codec.http2.Http2FrameListener