Class Http2SettingsFrameLogger
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.handler.codec.http2.Http2FrameLogger
-
- com.linkedin.alpini.netty4.handlers.Http2SettingsFrameLogger
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
@Sharable public class Http2SettingsFrameLogger extends io.netty.handler.codec.http2.Http2FrameLogger
Logs the HTTP/2 Settings Frames. 1) This handler logs the settings that are exchanged during the connection creation. 2) RST frames - If it contains an error code other than NO_ERROR, CANCEL 3) GO_AWAY frames - If it contains an error code other than NO_ERROR, CANCEL
-
-
Constructor Summary
Constructors Constructor Description Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level)
Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level, java.lang.Class<?> clazz)
Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getErrorCount()
void
logData(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endStream)
void
logGoAway(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int lastStreamId, long errorCode, io.netty.buffer.ByteBuf debugData)
void
logHeaders(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endStream)
void
logHeaders(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream)
void
logPing(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, long data)
void
logPingAck(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, long data)
void
logPriority(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)
void
logPushPromise(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers, int padding)
void
logRstStream(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode)
void
logUnknownFrame(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, byte frameType, int streamId, io.netty.handler.codec.http2.Http2Flags flags, io.netty.buffer.ByteBuf data)
void
logWindowsUpdate(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
void
setLogInboundRst(boolean logInboundRst)
-
Methods inherited from class io.netty.handler.codec.http2.Http2FrameLogger
isEnabled, logSettings, logSettingsAck
-
-
-
-
Constructor Detail
-
Http2SettingsFrameLogger
public Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level)
-
Http2SettingsFrameLogger
public Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level, java.lang.String name)
-
Http2SettingsFrameLogger
public Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level, java.lang.Class<?> clazz)
-
-
Method Detail
-
getErrorCount
public long getErrorCount()
-
setLogInboundRst
public void setLogInboundRst(boolean logInboundRst)
-
logData
public void logData(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endStream)
- Overrides:
logData
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logHeaders
public void logHeaders(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endStream)
- Overrides:
logHeaders
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logHeaders
public void logHeaders(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream)
- Overrides:
logHeaders
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logPriority
public void logPriority(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)
- Overrides:
logPriority
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logRstStream
public void logRstStream(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode)
- Overrides:
logRstStream
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logPing
public void logPing(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, long data)
- Overrides:
logPing
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logPingAck
public void logPingAck(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, long data)
- Overrides:
logPingAck
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logPushPromise
public void logPushPromise(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers, int padding)
- Overrides:
logPushPromise
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logGoAway
public void logGoAway(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int lastStreamId, long errorCode, io.netty.buffer.ByteBuf debugData)
- Overrides:
logGoAway
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logWindowsUpdate
public void logWindowsUpdate(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
- Overrides:
logWindowsUpdate
in classio.netty.handler.codec.http2.Http2FrameLogger
-
logUnknownFrame
public void logUnknownFrame(io.netty.handler.codec.http2.Http2FrameLogger.Direction direction, io.netty.channel.ChannelHandlerContext ctx, byte frameType, int streamId, io.netty.handler.codec.http2.Http2Flags flags, io.netty.buffer.ByteBuf data)
- Overrides:
logUnknownFrame
in classio.netty.handler.codec.http2.Http2FrameLogger
-
-