Package io.netty.handler.codec.http2
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 io.netty.handler.codec.http2.Http2FrameReader
Http2FrameReader.Configuration
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this reader and frees any allocated resources.Get the configuration related elements for thisHttp2FrameReader
void
readFrame
(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) Attempts to read the next frame from the input buffer.
-
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: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
Description copied from interface:Http2FrameReader
Get the configuration related elements for thisHttp2FrameReader
- Specified by:
configuration
in interfaceHttp2FrameReader
-