public abstract class Http3RequestStreamInboundHandler
extends io.netty.channel.ChannelInboundHandlerAdapter
ChannelInboundHandlerAdapter which makes it easy to handle
HTTP3 request streams.| Constructor and Description |
|---|
Http3RequestStreamInboundHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Http3DataFrame frame,
boolean isLast)
Called once a
Http3DataFrame is ready for this stream to process. |
protected abstract void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Http3HeadersFrame frame,
boolean isLast)
Called once a
Http3HeadersFrame is ready for this stream to process. |
protected void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Http3UnknownFrame frame)
Called once a
Http3UnknownFrame is ready for this stream to process. |
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
protected io.netty.incubator.codec.quic.QuicStreamChannel |
controlStream(io.netty.channel.ChannelHandlerContext ctx)
Return the local control stream for this HTTP/3 connection.
|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
protected void |
handleHttp3Exception(io.netty.channel.ChannelHandlerContext ctx,
Http3Exception exception)
Called once a
Http3Exception should be handled. |
protected void |
handleQuicException(io.netty.channel.ChannelHandlerContext ctx,
io.netty.incubator.codec.quic.QuicException exception)
Called once a
QuicException should be handled. |
boolean |
isSharable()
Always returns
true as this handler and sub-types are not sharable, due internal state. |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemovedpublic final boolean isSharable()
true as this handler and sub-types are not sharable, due internal state.isSharable in class io.netty.channel.ChannelHandlerAdapterpublic final void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.channel.ChannelInboundHandlerAdapterprotected abstract void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Http3HeadersFrame frame,
boolean isLast)
throws Exception
Http3HeadersFrame is ready for this stream to process.ctx - the ChannelHandlerContext of this handler.frame - the Http3HeadersFrame that was readisLast - true if this is the last frame that will be read for this stream.Exception - thrown if an error happens during processing.protected abstract void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Http3DataFrame frame,
boolean isLast)
throws Exception
Http3DataFrame is ready for this stream to process.ctx - the ChannelHandlerContext of this handler.frame - the Http3DataFrame that was readisLast - true if this is the last frame that will be read for this stream.Exception - thrown if an error happens during processing.protected void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Http3UnknownFrame frame)
Http3UnknownFrame is 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.ctx - the ChannelHandlerContext of this handler.frame - the Http3UnknownFrame that was readprotected void handleQuicException(io.netty.channel.ChannelHandlerContext ctx,
io.netty.incubator.codec.quic.QuicException exception)
QuicException should be handled.ctx - the ChannelHandlerContext of this handler.exception - the QuicException that caused the error.protected void handleHttp3Exception(io.netty.channel.ChannelHandlerContext ctx,
Http3Exception exception)
Http3Exception should be handled.ctx - the ChannelHandlerContext of this handler.exception - the Http3Exception that caused the error.protected final io.netty.incubator.codec.quic.QuicStreamChannel controlStream(io.netty.channel.ChannelHandlerContext ctx)
Http3ControlStreamFrames to the remote peer.ctx - the ChannelHandlerContext of this handler.Copyright © 2020–2022 The Netty Project. All rights reserved.