-
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
DefaultHttp2FrameReader
,Http2InboundFrameLogger
@UnstableApi public interface Http2FrameReader extends Closeable
Reads HTTP/2 frames from an inputBuffer
and notifies the specifiedHttp2FrameListener
when frames are complete.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Http2FrameReader.Configuration
Configuration specific toHttp2FrameReader
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Closes this reader and frees any allocated resources.Http2FrameReader.Configuration
configuration()
Get the configuration related elements for thisHttp2FrameReader
void
readFrame(ChannelHandlerContext ctx, Buffer input, Http2FrameListener listener)
Attempts to read the next frame from the input buffer.
-
-
-
Method Detail
-
readFrame
void readFrame(ChannelHandlerContext ctx, Buffer 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
Http2FrameReader.Configuration configuration()
Get the configuration related elements for thisHttp2FrameReader
-
close
void close()
Closes this reader and frees any allocated resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-