Package io.netty.handler.codec.http3
Class Http3PushStreamServerInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<QuicStreamChannel>
-
- io.netty.handler.codec.http3.Http3PushStreamServerInitializer
-
- All Implemented Interfaces:
ChannelHandler
,ChannelInboundHandler
public abstract class Http3PushStreamServerInitializer extends ChannelInitializer<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 theChannelPipeline
as well.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Http3PushStreamServerInitializer(long pushId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
initChannel(QuicStreamChannel ch)
This method will be called once theChannel
was registered.protected abstract void
initPushStream(QuicStreamChannel ch)
Initialize theQuicStreamChannel
to handleHttp3PushStreamFrame
s.-
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
-
-
-
-
Method Detail
-
initChannel
protected final void initChannel(QuicStreamChannel ch)
Description copied from class:ChannelInitializer
This method will be called once theChannel
was registered. After the method returns this instance will be removed from theChannelPipeline
of theChannel
.- Specified by:
initChannel
in classChannelInitializer<QuicStreamChannel>
- Parameters:
ch
- theChannel
which was registered.
-
initPushStream
protected abstract void initPushStream(QuicStreamChannel ch)
Initialize theQuicStreamChannel
to handleHttp3PushStreamFrame
s. At the point of calling this method it is already valid to writeHttp3PushStreamFrame
s as the codec is already in the pipeline.- Parameters:
ch
- the {QuicStreamChannel} for the push stream.
-
-