Package io.netty.handler.codec.http2
Class Http2FrameLogger
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.handler.codec.http2.Http2FrameLogger
-
- All Implemented Interfaces:
ChannelHandler
public class Http2FrameLogger extends ChannelHandlerAdapter
Logs HTTP2 frames for debugging purposes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttp2FrameLogger.Direction-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Constructor Summary
Constructors Constructor Description Http2FrameLogger(LogLevel level)Http2FrameLogger(LogLevel level, java.lang.Class<?> clazz)Http2FrameLogger(LogLevel level, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled()voidlogData(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream)voidlogGoAway(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData)voidlogHeaders(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream)voidlogHeaders(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream)voidlogPing(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, long data)voidlogPingAck(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, long data)voidlogPriority(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)voidlogPushPromise(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding)voidlogRstStream(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, long errorCode)voidlogSettings(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, Http2Settings settings)voidlogSettingsAck(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx)voidlogUnknownFrame(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf data)voidlogWindowsUpdate(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
logData
public void logData(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, ByteBuf 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, ByteBuf 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, ByteBuf data)
-
-