Class Http3RequestStreamInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<QuicStreamChannel>
io.netty.handler.codec.http3.Http3RequestStreamInitializer
- All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler
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 ChannelHandler
ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidThis method will be called once theChannelwas registered.protected abstract voidInit theQuicStreamChannelto handleHttp3RequestStreamFrames.Methods inherited from class ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Constructor Details
-
Http3RequestStreamInitializer
public Http3RequestStreamInitializer()
-
-
Method Details
-
initChannel
Description copied from class:ChannelInitializerThis method will be called once theChannelwas registered. After the method returns this instance will be removed from theChannelPipelineof theChannel.- Specified by:
initChannelin classChannelInitializer<QuicStreamChannel>- Parameters:
ch- theChannelwhich was registered.
-
initRequestStream
Init theQuicStreamChannelto handleHttp3RequestStreamFrames. At the point of calling this method it is already valid to writeHttp3RequestStreamFrames as the codec is already in the pipeline.- Parameters:
ch- the {QuicStreamChannel} for the request stream.
-