Package io.netty.handler.codec.http2
Class Http2InboundFrameLogger
- java.lang.Object
-
- io.netty.handler.codec.http2.Http2InboundFrameLogger
-
- All Implemented Interfaces:
Http2FrameReader,java.io.Closeable,java.lang.AutoCloseable
public class Http2InboundFrameLogger extends java.lang.Object implements Http2FrameReader
Decorator around aHttp2FrameReaderthat logs all inbound frames before calling back the listener.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.handler.codec.http2.Http2FrameReader
Http2FrameReader.Configuration
-
-
Constructor Summary
Constructors Constructor Description Http2InboundFrameLogger(Http2FrameReader reader, Http2FrameLogger logger)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
Http2InboundFrameLogger
public Http2InboundFrameLogger(Http2FrameReader reader, Http2FrameLogger logger)
-
-
Method Detail
-
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
public Http2FrameReader.Configuration configuration()
Description copied from interface:Http2FrameReaderGet the configuration related elements for thisHttp2FrameReader- Specified by:
configurationin interfaceHttp2FrameReader
-
-