Class Http2InboundFrameLogger
java.lang.Object
io.netty.handler.codec.http2.Http2InboundFrameLogger
- All Implemented Interfaces:
Http2FrameReader, java.io.Closeable, java.lang.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 -
Field Summary
Fields -
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
reader
-
logger
-
-
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 interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceHttp2FrameReader
-
configuration
Description copied from interface:Http2FrameReaderGet the configuration related elements for thisHttp2FrameReader- Specified by:
configurationin interfaceHttp2FrameReader
-