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 |
channelInputClosed(io.netty.channel.ChannelHandlerContext ctx)
Called once the input is closed and so no more inbound data is received on it.
|
protected abstract void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Http3DataFrame frame)
Called once a
Http3DataFrame is ready for this stream to process. |
protected abstract void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Http3HeadersFrame frame)
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 @Nullable 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. |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharablepublic 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)
throws Exception
Http3HeadersFrame is ready for this stream to process.ctx - the ChannelHandlerContext of this handler.frame - the Http3HeadersFrame that was readException - thrown if an error happens during processing.protected abstract void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Http3DataFrame frame)
throws Exception
Http3DataFrame is ready for this stream to process.ctx - the ChannelHandlerContext of this handler.frame - the Http3DataFrame that was readException - thrown if an error happens during processing.protected abstract void channelInputClosed(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
ctx - the ChannelHandlerContext of this handler.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.@Nullable protected final @Nullable 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–2024 The Netty Project. All rights reserved.