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
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.netty.handler.codec.http2.Http2FrameLogger

    io.netty.handler.codec.http2.Http2FrameLogger.Direction

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler

    io.netty.channel.ChannelHandler.Sharable
  • Constructor Summary

    Constructors
    Constructor
    Description
    Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level)
     
    Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level, Class<?> clazz)
     
    Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     
    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

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Http2SettingsFrameLogger

      public Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level)
    • Http2SettingsFrameLogger

      public Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level, String name)
    • Http2SettingsFrameLogger

      public Http2SettingsFrameLogger(io.netty.handler.logging.LogLevel level, Class<?> clazz)
  • Method Details

    • 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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.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 class io.netty.handler.codec.http2.Http2FrameLogger