@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
Http2FrameReaderreadFrame in interface Http2FrameReaderHttp2Exceptionpublic void close()
Http2FrameReaderclose in interface Http2FrameReaderclose in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic Http2FrameReader.Configuration configuration()
Http2FrameReaderHttp2FrameReaderconfiguration in interface Http2FrameReader