Class Http3RequestStreamInboundHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.http3.Http3RequestStreamInboundHandler
- All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler
- Direct Known Subclasses:
Http3FrameToHttpObjectCodec
ChannelInboundHandlerAdapter which makes it easy to handle
HTTP3 request streams.-
Nested Class Summary
Nested classes/interfaces inherited from interface ChannelHandler
ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidCalled once the input is closed and so no more inbound data is received on it.protected abstract voidchannelRead(ChannelHandlerContext ctx, Http3DataFrame frame) Called once aHttp3DataFrameis ready for this stream to process.protected abstract voidchannelRead(ChannelHandlerContext ctx, Http3HeadersFrame frame) Called once aHttp3HeadersFrameis ready for this stream to process.protected voidchannelRead(ChannelHandlerContext ctx, Http3UnknownFrame frame) Called once aHttp3UnknownFrameis ready for this stream to process.final voidchannelRead(ChannelHandlerContext ctx, Object msg) CallsChannelHandlerContext.fireChannelRead(Object)to forward to the nextChannelInboundHandlerin theChannelPipeline.protected final @Nullable QuicStreamChannelReturn the local control stream for this HTTP/3 connection.voidexceptionCaught(ChannelHandlerContext ctx, Throwable cause) CallsChannelHandlerContext.fireExceptionCaught(Throwable)to forward to the nextChannelHandlerin theChannelPipeline.protected voidhandleHttp3Exception(ChannelHandlerContext ctx, Http3Exception exception) Called once aHttp3Exceptionshould be handled.protected voidhandleQuicException(ChannelHandlerContext ctx, QuicException exception) Called once aQuicExceptionshould be handled.voiduserEventTriggered(ChannelHandlerContext ctx, Object evt) CallsChannelHandlerContext.fireUserEventTriggered(Object)to forward to the nextChannelInboundHandlerin theChannelPipeline.Methods inherited from class ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
Http3RequestStreamInboundHandler
public Http3RequestStreamInboundHandler()
-
-
Method Details
-
channelRead
Description copied from class:ChannelInboundHandlerAdapterCallsChannelHandlerContext.fireChannelRead(Object)to forward to the nextChannelInboundHandlerin theChannelPipeline. Sub-classes may override this method to change behavior.- Specified by:
channelReadin interfaceChannelInboundHandler- Overrides:
channelReadin classChannelInboundHandlerAdapter- Throws:
Exception
-
userEventTriggered
Description copied from class:ChannelInboundHandlerAdapterCallsChannelHandlerContext.fireUserEventTriggered(Object)to forward to the nextChannelInboundHandlerin theChannelPipeline. Sub-classes may override this method to change behavior.- Specified by:
userEventTriggeredin interfaceChannelInboundHandler- Overrides:
userEventTriggeredin classChannelInboundHandlerAdapter- Throws:
Exception
-
exceptionCaught
Description copied from class:ChannelInboundHandlerAdapterCallsChannelHandlerContext.fireExceptionCaught(Throwable)to forward to the nextChannelHandlerin theChannelPipeline. Sub-classes may override this method to change behavior.- Specified by:
exceptionCaughtin interfaceChannelHandler- Specified by:
exceptionCaughtin interfaceChannelInboundHandler- Overrides:
exceptionCaughtin classChannelInboundHandlerAdapter
-
channelRead
protected abstract void channelRead(ChannelHandlerContext ctx, Http3HeadersFrame frame) throws Exception Called once aHttp3HeadersFrameis ready for this stream to process.- Parameters:
ctx- theChannelHandlerContextof this handler.frame- theHttp3HeadersFramethat was read- Throws:
Exception- thrown if an error happens during processing.
-
channelRead
protected abstract void channelRead(ChannelHandlerContext ctx, Http3DataFrame frame) throws Exception Called once aHttp3DataFrameis ready for this stream to process.- Parameters:
ctx- theChannelHandlerContextof this handler.frame- theHttp3DataFramethat was read- Throws:
Exception- thrown if an error happens during processing.
-
channelInputClosed
Called once the input is closed and so no more inbound data is received on it.- Parameters:
ctx- theChannelHandlerContextof this handler.- Throws:
Exception- thrown if an error happens during processing.
-
channelRead
Called once aHttp3UnknownFrameis ready for this stream to process. By default these frames are just released and so dropped on the floor as stated in the RFC. That said you may want to override this method if you use some custom frames which are not part of the main spec.- Parameters:
ctx- theChannelHandlerContextof this handler.frame- theHttp3UnknownFramethat was read
-
handleQuicException
Called once aQuicExceptionshould be handled.- Parameters:
ctx- theChannelHandlerContextof this handler.exception- theQuicExceptionthat caused the error.
-
handleHttp3Exception
Called once aHttp3Exceptionshould be handled.- Parameters:
ctx- theChannelHandlerContextof this handler.exception- theHttp3Exceptionthat caused the error.
-
controlStream
Return the local control stream for this HTTP/3 connection. This can be used to sendHttp3ControlStreamFrames to the remote peer.- Parameters:
ctx- theChannelHandlerContextof this handler.- Returns:
- the control stream.
-