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