Package org.mockserver.netty.http3
Class Http3MockServerHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.http3.Http3RequestStreamInboundHandler
org.mockserver.netty.http3.Http3MockServerHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class Http3MockServerHandler
extends io.netty.handler.codec.http3.Http3RequestStreamInboundHandler
HTTP/3 request stream handler that bridges incoming QUIC requests into
MockServer's standard request-processing pipeline (expectation matching,
actions, recording, proxy forwarding).
Each QUIC bidirectional stream gets its own instance. The handler
accumulates the request headers and body data frames, then routes the
resulting HttpRequest through the same HttpState and
HttpActionHandler used by HTTP/1.1 and HTTP/2.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Constructor Summary
ConstructorsConstructorDescriptionHttp3MockServerHandler(Configuration configuration, MockServerLogger mockServerLogger, HttpState httpState, HttpActionHandler httpActionHandler, Metrics metrics) Http3MockServerHandler(Configuration configuration, MockServerLogger mockServerLogger, HttpState httpState, HttpActionHandler httpActionHandler, Metrics metrics, McpRequestProcessor mcpRequestProcessor) -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelInactive(io.netty.channel.ChannelHandlerContext ctx) protected voidchannelInputClosed(io.netty.channel.ChannelHandlerContext ctx) protected voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http3.Http3DataFrame dataFrame) protected voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http3.Http3HeadersFrame headersFrame) voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) voidhandlerRemoved(io.netty.channel.ChannelHandlerContext ctx) Methods inherited from class io.netty.handler.codec.http3.Http3RequestStreamInboundHandler
channelRead, channelRead, controlStream, handleHttp3Exception, handleQuicException, userEventTriggeredMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded
-
Constructor Details
-
Http3MockServerHandler
public Http3MockServerHandler(Configuration configuration, MockServerLogger mockServerLogger, HttpState httpState, HttpActionHandler httpActionHandler, Metrics metrics) -
Http3MockServerHandler
public Http3MockServerHandler(Configuration configuration, MockServerLogger mockServerLogger, HttpState httpState, HttpActionHandler httpActionHandler, Metrics metrics, McpRequestProcessor mcpRequestProcessor)
-
-
Method Details
-
channelRead
protected void channelRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http3.Http3HeadersFrame headersFrame) - Specified by:
channelReadin classio.netty.handler.codec.http3.Http3RequestStreamInboundHandler
-
channelRead
protected void channelRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http3.Http3DataFrame dataFrame) - Specified by:
channelReadin classio.netty.handler.codec.http3.Http3RequestStreamInboundHandler
-
channelInactive
- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
channelInputClosed
protected void channelInputClosed(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
channelInputClosedin classio.netty.handler.codec.http3.Http3RequestStreamInboundHandler
-
handlerRemoved
- Specified by:
handlerRemovedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerRemovedin classio.netty.channel.ChannelHandlerAdapter- Throws:
Exception
-
exceptionCaught
- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.handler.codec.http3.Http3RequestStreamInboundHandler
-