- java.lang.Object
-
- io.netty5.handler.codec.http2.Http2FrameLogger
-
@UnstableApi public class Http2FrameLogger extends Object
Logs HTTP2 frames for debugging purposes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Http2FrameLogger.Direction
-
Constructor Summary
Constructors Constructor Description Http2FrameLogger(LogLevel level)
Http2FrameLogger(LogLevel level, Class<?> clazz)
Http2FrameLogger(LogLevel level, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEnabled()
void
logData(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endStream)
void
logGoAway(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
void
logHeaders(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream)
void
logHeaders(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream)
void
logPing(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, long data)
void
logPingAck(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, long data)
void
logPriority(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)
void
logPushPromise(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding)
void
logRstStream(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, long errorCode)
void
logSettings(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, Http2Settings settings)
void
logSettingsAck(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx)
void
logUnknownFrame(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer data)
void
logWindowsUpdate(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
logData
public void logData(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, Buffer data, int padding, boolean endStream)
-
logHeaders
public void logHeaders(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream)
-
logHeaders
public void logHeaders(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream)
-
logPriority
public void logPriority(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)
-
logRstStream
public void logRstStream(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, long errorCode)
-
logSettingsAck
public void logSettingsAck(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx)
-
logSettings
public void logSettings(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, Http2Settings settings)
-
logPing
public void logPing(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, long data)
-
logPingAck
public void logPingAck(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, long data)
-
logPushPromise
public void logPushPromise(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding)
-
logGoAway
public void logGoAway(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int lastStreamId, long errorCode, Buffer debugData)
-
logWindowsUpdate
public void logWindowsUpdate(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
-
logUnknownFrame
public void logUnknownFrame(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, Buffer data)
-
-