Package io.netty.handler.codec.http3
Class Http3PushStreamServerInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.handler.codec.quic.QuicStreamChannel>
-
- io.netty.handler.codec.http3.Http3PushStreamServerInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public abstract class Http3PushStreamServerInitializer 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 servers. This initializer will automatically add HTTP/3 codecs etc to theChannelPipelineas well.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttp3PushStreamServerInitializer(long pushId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidinitChannel(io.netty.handler.codec.quic.QuicStreamChannel ch)protected abstract voidinitPushStream(io.netty.handler.codec.quic.QuicStreamChannel ch)Initialize theQuicStreamChannelto handleHttp3PushStreamFrames.-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Method Detail
-
initChannel
protected final void initChannel(io.netty.handler.codec.quic.QuicStreamChannel ch)
- Specified by:
initChannelin classio.netty.channel.ChannelInitializer<io.netty.handler.codec.quic.QuicStreamChannel>
-
initPushStream
protected abstract void initPushStream(io.netty.handler.codec.quic.QuicStreamChannel ch)
Initialize theQuicStreamChannelto handleHttp3PushStreamFrames. At the point of calling this method it is already valid to writeHttp3PushStreamFrames as the codec is already in the pipeline.- Parameters:
ch- the {QuicStreamChannel} for the push stream.
-
-