Class Http2ConnectionHandler.BaseDecoder

java.lang.Object
io.netty.handler.codec.http2.Http2ConnectionHandler.BaseDecoder
Direct Known Subclasses:
Http2ConnectionHandler.FrameDecoder, Http2ConnectionHandler.PrefaceDecoder
Enclosing class:
Http2ConnectionHandler

private abstract class Http2ConnectionHandler.BaseDecoder extends java.lang.Object
  • Constructor Details

    • BaseDecoder

      private BaseDecoder()
  • Method Details

    • decode

      public abstract void decode(ChannelHandlerContext ctx, ByteBuf in, java.util.List<java.lang.Object> out) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • handlerRemoved

      public void handlerRemoved(ChannelHandlerContext ctx) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • channelActive

      public void channelActive(ChannelHandlerContext ctx) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • channelInactive

      public void channelInactive(ChannelHandlerContext ctx) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • prefaceSent

      public boolean prefaceSent()
      Determine if the HTTP/2 connection preface been sent.
    • sendPrefaceIfNeeded

      public void sendPrefaceIfNeeded(ChannelHandlerContext ctx) throws java.lang.Exception
      Send the preface if needed.
      Parameters:
      ctx - the ChannelHandlerContext to use.
      Throws:
      java.lang.Exception - thrown on error.