Class Http3RequestStreamInitializer

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

    public abstract class Http3RequestStreamInitializer
    extends io.netty.channel.ChannelInitializer<io.netty.handler.codec.quic.QuicStreamChannel>
    Abstract base class that users can extend to init HTTP/3 request-streams. 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 initRequestStream​(io.netty.handler.codec.quic.QuicStreamChannel ch)
      Init the QuicStreamChannel to handle Http3RequestStreamFrames.
      • 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

      • Http3RequestStreamInitializer

        public Http3RequestStreamInitializer()
    • 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>
      • initRequestStream

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