Class Http2InboundFrameLogger
java.lang.Object
io.netty.handler.codec.http2.Http2InboundFrameLogger
- All Implemented Interfaces:
Http2FrameReader, Closeable, AutoCloseable
Decorator around a
Http2FrameReader that logs all inbound frames before calling
back the listener.-
Nested Class Summary
Nested classes/interfaces inherited from interface Http2FrameReader
Http2FrameReader.Configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this reader and frees any allocated resources.Get the configuration related elements for thisHttp2FrameReadervoidreadFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) Attempts to read the next frame from the input buffer.
-
Constructor Details
-
Http2InboundFrameLogger
-
-
Method Details
-
readFrame
public void readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) throws Http2Exception Description copied from interface:Http2FrameReaderAttempts 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.- Specified by:
readFramein interfaceHttp2FrameReader- Throws:
Http2Exception
-
close
public void close()Description copied from interface:Http2FrameReaderCloses this reader and frees any allocated resources.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceHttp2FrameReader
-
configuration
Description copied from interface:Http2FrameReaderGet the configuration related elements for thisHttp2FrameReader- Specified by:
configurationin interfaceHttp2FrameReader
-