Class Http1xResponseHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class Http1xResponseHandler
    extends BaseResponseHandler
    • Nested Class Summary

      • 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
      void channelInactive​(io.netty.channel.ChannelHandlerContext ctx)  
      void channelRead​(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg)  
      void handlerAdded​(io.netty.channel.ChannelHandlerContext ctx)  
      void handlerRemoved​(io.netty.channel.ChannelHandlerContext ctx)  
      protected boolean isRequestStream​(int streamId)  
      protected void onBodyPart​(io.netty.buffer.ByteBuf buf, int startOffset, int length, boolean isLastPart)  
      protected void onCompletion​(HttpRequest request)  
      protected void onData​(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf buf)  
      protected void onHeaderRead​(io.netty.buffer.ByteBuf buf, int startOfName, int endOfName, int startOfValue, int endOfValue)  
      protected void onStatus​(int status)  
      java.lang.String toString()  
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

        channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
      • Methods inherited from class io.netty.channel.ChannelHandlerAdapter

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • handlerAdded

        public void handlerAdded​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        handlerAdded in interface io.netty.channel.ChannelHandler
        Overrides:
        handlerAdded in class io.netty.channel.ChannelHandlerAdapter
      • channelInactive

        public void channelInactive​(io.netty.channel.ChannelHandlerContext ctx)
                             throws java.lang.Exception
        Specified by:
        channelInactive in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        java.lang.Exception
      • handlerRemoved

        public void handlerRemoved​(io.netty.channel.ChannelHandlerContext ctx)
        Specified by:
        handlerRemoved in interface io.netty.channel.ChannelHandler
        Overrides:
        handlerRemoved in class io.netty.channel.ChannelHandlerAdapter
      • channelRead

        public void channelRead​(io.netty.channel.ChannelHandlerContext ctx,
                                java.lang.Object msg)
                         throws java.lang.Exception
        Specified by:
        channelRead in interface io.netty.channel.ChannelInboundHandler
        Overrides:
        channelRead in class io.netty.channel.ChannelInboundHandlerAdapter
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • onData

        protected void onData​(io.netty.channel.ChannelHandlerContext ctx,
                              io.netty.buffer.ByteBuf buf)
        Overrides:
        onData in class BaseResponseHandler
      • onHeaderRead

        protected void onHeaderRead​(io.netty.buffer.ByteBuf buf,
                                    int startOfName,
                                    int endOfName,
                                    int startOfValue,
                                    int endOfValue)
        Overrides:
        onHeaderRead in class BaseResponseHandler
      • onBodyPart

        protected void onBodyPart​(io.netty.buffer.ByteBuf buf,
                                  int startOffset,
                                  int length,
                                  boolean isLastPart)
        Overrides:
        onBodyPart in class BaseResponseHandler