Interface Http2FrameReader

All Superinterfaces:
java.lang.AutoCloseable, java.io.Closeable
All Known Implementing Classes:
DefaultHttp2FrameReader, Http2InboundFrameLogger

public interface Http2FrameReader extends java.io.Closeable
Reads HTTP/2 frames from an input ByteBuf and notifies the specified Http2FrameListener when frames are complete.
  • Method Details

    • readFrame

      void readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) throws Http2Exception
      Attempts to read the next frame from the input buffer. If enough data is available to fully read the frame, notifies the listener of the read frame.
      Throws:
      Http2Exception
    • configuration

      Get the configuration related elements for this Http2FrameReader
    • close

      void close()
      Closes this reader and frees any allocated resources.
      Specified by:
      close in interface java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable