Class Http3PushStreamClientInitializer
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<QuicStreamChannel>
io.netty.handler.codec.http3.Http3PushStreamClientInitializer
- All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler
public abstract class Http3PushStreamClientInitializer
extends ChannelInitializer<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 ChannelHandler
ChannelHandler.SharableModifier and TypeInterfaceDescriptionstatic @interfaceIndicates that the same instance of the annotatedChannelHandlercan be added to one or moreChannelPipelines multiple times without a race condition. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidThis method will be called once theChannelwas registered.protected abstract voidInitialize theQuicStreamChannelto handleHttp3PushStreamFrames.Methods inherited from class ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedModifier and TypeMethodDescriptionfinal voidCallsChannelHandlerContext.fireChannelRegistered()to forward to the nextChannelInboundHandlerin theChannelPipeline.voidexceptionCaught(ChannelHandlerContext ctx, Throwable cause) voidDo nothing by default, sub-classes may override this method.voidDo nothing by default, sub-classes may override this method.Methods inherited from class ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredModifier and TypeMethodDescriptionvoidCallsChannelHandlerContext.fireChannelActive()to forward to the nextChannelInboundHandlerin theChannelPipeline.voidCallsChannelHandlerContext.fireChannelInactive()to forward to the nextChannelInboundHandlerin theChannelPipeline.voidchannelRead(ChannelHandlerContext ctx, Object msg) CallsChannelHandlerContext.fireChannelRead(Object)to forward to the nextChannelInboundHandlerin theChannelPipeline.voidCallsChannelHandlerContext.fireChannelReadComplete()to forward to the nextChannelInboundHandlerin theChannelPipeline.voidCallsChannelHandlerContext.fireChannelUnregistered()to forward to the nextChannelInboundHandlerin theChannelPipeline.voidCallsChannelHandlerContext.fireChannelWritabilityChanged()to forward to the nextChannelInboundHandlerin theChannelPipeline.voiduserEventTriggered(ChannelHandlerContext ctx, Object evt) CallsChannelHandlerContext.fireUserEventTriggered(Object)to forward to the nextChannelInboundHandlerin theChannelPipeline.Methods inherited from class ChannelHandlerAdapter
ensureNotSharable, isSharableModifier and TypeMethodDescriptionprotected voidbooleanReturntrueif the implementation isChannelHandler.Sharableand so can be added to differentChannelPipelines.
-
Constructor Details
-
Http3PushStreamClientInitializer
public Http3PushStreamClientInitializer()
-
-
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.
-
initPushStream
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.
-