Package io.netty.handler.codec.http2
Interface Http2FrameReader
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
DefaultHttp2FrameReader
,Http2InboundFrameLogger
Reads HTTP/2 frames from an input
ByteBuf
and notifies the specified
Http2FrameListener
when frames are complete.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this reader and frees any allocated resources.Get the configuration related elements for thisHttp2FrameReader
void
readFrame
(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) Attempts to read the next frame from the input buffer.
-
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
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
-