Package io.netty.handler.codec.http2
Interface Http2FrameReader
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
DefaultHttp2FrameReader,Http2InboundFrameLogger
public interface Http2FrameReader extends java.io.CloseableReads HTTP/2 frames from an inputByteBufand notifies the specifiedHttp2FrameListenerwhen frames are complete.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceHttp2FrameReader.ConfigurationConfiguration specific toHttp2FrameReader
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes this reader and frees any allocated resources.Http2FrameReader.Configurationconfiguration()Get the configuration related elements for thisHttp2FrameReadervoidreadFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener)Attempts to read the next frame from the input buffer.
-
-
-
Method Detail
-
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:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-