@UnstableApi public class Http2InboundFrameLogger extends java.lang.Object implements Http2FrameReader
Http2FrameReader
that logs all inbound frames before calling
back the listener.Http2FrameReader.Configuration
Modifier and Type | Field and Description |
---|---|
private Http2FrameLogger |
logger |
private Http2FrameReader |
reader |
Constructor and Description |
---|
Http2InboundFrameLogger(Http2FrameReader reader,
Http2FrameLogger logger) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this reader and frees any allocated resources.
|
Http2FrameReader.Configuration |
configuration()
Get the configuration related elements for this
Http2FrameReader |
void |
readFrame(ChannelHandlerContext ctx,
ByteBuf input,
Http2FrameListener listener)
Attempts to read the next frame from the input buffer.
|
private final Http2FrameReader reader
private final Http2FrameLogger logger
public Http2InboundFrameLogger(Http2FrameReader reader, Http2FrameLogger logger)
public void readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) throws Http2Exception
Http2FrameReader
readFrame
in interface Http2FrameReader
Http2Exception
public void close()
Http2FrameReader
close
in interface Http2FrameReader
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public Http2FrameReader.Configuration configuration()
Http2FrameReader
Http2FrameReader
configuration
in interface Http2FrameReader