Class InboundContentDebugHandler

  • All Implemented Interfaces:,

    public class InboundContentDebugHandler
    In order to dump the HTTP headers when there is a decode failure, surround the HTTP decode handler with these handles...example:
       InboundContentDebugHandler debugContentHandler = new InboundContentDebugHandler(24 * 1024);
           .addLast(new HttpServerCodec())
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  InboundContentDebugHandler.HttpDecodeResult  
      • Nested classes/interfaces inherited from interface
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void channelInactive​( ctx)  
      void channelRead​( ctx, java.lang.Object msg)  
      static void clearBuffer​( channel)  
      static io.netty.buffer.ByteBuf fetchLastBytesOf​( channel, int length)  
      • Methods inherited from class

        channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
      • Methods inherited from class

        ensureNotSharable, handlerAdded, handlerRemoved, isSharable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface

        handlerAdded, handlerRemoved
    • Constructor Detail

      • InboundContentDebugHandler

        public InboundContentDebugHandler​(int maxWindowSize)
      • InboundContentDebugHandler

        public InboundContentDebugHandler​(@Nonnull
                                          java.util.function.IntSupplier maxWindowSize)
    • Method Detail

      • channelInactive

        public void channelInactive​( ctx)
                             throws java.lang.Exception
        Specified by:
        channelInactive in interface
        channelInactive in class
      • channelRead

        public void channelRead​( ctx,
                                java.lang.Object msg)
                         throws java.lang.Exception
        Specified by:
        channelRead in interface
        channelRead in class
      • clearBuffer

        public static void clearBuffer​( channel)
      • fetchLastBytesOf

        public static io.netty.buffer.ByteBuf fetchLastBytesOf​( channel,
                                                               int length)