Class Http3PushStreamClientInitializer

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

    public abstract class Http3PushStreamClientInitializer
    extends io.netty.channel.ChannelInitializer<io.netty.handler.codec.quic.QuicStreamChannel>
    Abstract base class that users can extend to init HTTP/3 push-streams for clients. This initializer will automatically add HTTP/3 codecs etc to the ChannelPipeline as well.
    • Nested Class Summary

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

        io.netty.channel.ChannelHandler.Sharable
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void initChannel​(io.netty.handler.codec.quic.QuicStreamChannel ch)  
      protected abstract void initPushStream​(io.netty.handler.codec.quic.QuicStreamChannel ch)
      Initialize the QuicStreamChannel to handle Http3PushStreamFrames.
      • Methods inherited from class io.netty.channel.ChannelInitializer

        channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
      • Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter

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

        ensureNotSharable, isSharable
    • Constructor Detail

      • Http3PushStreamClientInitializer

        public Http3PushStreamClientInitializer()
    • Method Detail

      • initChannel

        protected final void initChannel​(io.netty.handler.codec.quic.QuicStreamChannel ch)
        Specified by:
        initChannel in class io.netty.channel.ChannelInitializer<io.netty.handler.codec.quic.QuicStreamChannel>
      • initPushStream

        protected abstract void initPushStream​(io.netty.handler.codec.quic.QuicStreamChannel ch)
        Initialize the QuicStreamChannel to handle Http3PushStreamFrames. At the point of calling this method it is already valid to write Http3PushStreamFrames as the codec is already in the pipeline.
        Parameters:
        ch - the {QuicStreamChannel} for the push stream.