- java.lang.Object
-
- io.netty5.handler.codec.http2.Http2InboundFrameLogger
-
- All Implemented Interfaces:
Http2FrameReader
,Closeable
,AutoCloseable
@UnstableApi public class Http2InboundFrameLogger extends Object implements Http2FrameReader
Decorator around aHttp2FrameReader
that logs all inbound frames before calling back the listener.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty5.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 void
close()
Closes this reader and frees any allocated resources.Http2FrameReader.Configuration
configuration()
Get the configuration related elements for thisHttp2FrameReader
void
readFrame(ChannelHandlerContext ctx, Buffer 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, Buffer input, Http2FrameListener listener) throws Http2Exception
Description copied from interface:Http2FrameReader
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.- Specified by:
readFrame
in interfaceHttp2FrameReader
- Throws:
Http2Exception
-
close
public void close()
Description copied from interface:Http2FrameReader
Closes this reader and frees any allocated resources.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceHttp2FrameReader
-
configuration
public Http2FrameReader.Configuration configuration()
Description copied from interface:Http2FrameReader
Get the configuration related elements for thisHttp2FrameReader
- Specified by:
configuration
in interfaceHttp2FrameReader
-
-