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
Logs HTTP2 frames for debugging purposes.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private final InternalLogLevel
private final InternalLogger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionHttp2FrameLogger
(LogLevel level) Http2FrameLogger
(LogLevel level, Class<?> clazz) Http2FrameLogger
(LogLevel level, String name) private
Http2FrameLogger
(InternalLogLevel level, InternalLogger logger) -
Method Summary
Modifier and TypeMethodDescriptionprivate static InternalLogLevel
checkAndConvertLevel
(LogLevel level) boolean
void
logData
(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endStream) void
logGoAway
(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf 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, ByteBuf data) void
logWindowsUpdate
(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, int streamId, int windowSizeIncrement) private String
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
Field Details
-
BUFFER_LENGTH_THRESHOLD
private static final int BUFFER_LENGTH_THRESHOLD- See Also:
-
logger
-
level
-
-
Constructor Details
-
Http2FrameLogger
-
Http2FrameLogger
-
Http2FrameLogger
-
Http2FrameLogger
-
-
Method Details
-
checkAndConvertLevel
-
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
-
logSettings
public void logSettings(Http2FrameLogger.Direction direction, ChannelHandlerContext ctx, Http2Settings settings) -
logPing
-
logPingAck
-
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) -
toString
-