Class Http2ChannelDuplexHandler

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler
    Direct Known Subclasses:
    Http2MultiplexHandler

    public abstract class Http2ChannelDuplexHandler
    extends io.netty.channel.ChannelDuplexHandler
    A ChannelDuplexHandler providing additional functionality for HTTP/2. Specifically it allows to:

    The Http2FrameCodec is required to be part of the ChannelPipeline before this handler is added, or else an IllegalStateException will be thrown.

    • Nested Class Summary

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

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

      • Http2ChannelDuplexHandler

        public Http2ChannelDuplexHandler()
    • Method Detail

      • handlerAdded

        public final void handlerAdded​(io.netty.channel.ChannelHandlerContext ctx)
                                throws Exception
        Specified by:
        handlerAdded in interface io.netty.channel.ChannelHandler
        Overrides:
        handlerAdded in class io.netty.channel.ChannelHandlerAdapter
        Throws:
        Exception
      • handlerAdded0

        protected void handlerAdded0​(io.netty.channel.ChannelHandlerContext ctx)
                              throws Exception
        Throws:
        Exception
      • handlerRemoved

        public final void handlerRemoved​(io.netty.channel.ChannelHandlerContext ctx)
                                  throws Exception
        Specified by:
        handlerRemoved in interface io.netty.channel.ChannelHandler
        Overrides:
        handlerRemoved in class io.netty.channel.ChannelHandlerAdapter
        Throws:
        Exception
      • handlerRemoved0

        protected void handlerRemoved0​(io.netty.channel.ChannelHandlerContext ctx)
                                throws Exception
        Throws:
        Exception
      • forEachActiveStream

        protected final void forEachActiveStream​(Http2FrameStreamVisitor streamVisitor)
                                          throws Http2Exception
        Allows to iterate over all currently active streams.

        This method may only be called from the eventloop thread.

        Throws:
        Http2Exception