Class Http2ServerHandler
java.lang.Object
io.micronaut.http.server.netty.handler.Http2ServerHandler
- All Implemented Interfaces:
io.netty.handler.codec.http2.Http2FrameListener
@Internal
public final class Http2ServerHandler
extends Object
implements io.netty.handler.codec.http2.Http2FrameListener
HTTP/2-specific server handler.
- Since:
- 4.4.0
- Author:
- Jonas Konrad
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Http2ConnectionHandler
implementation containing theHttp2ServerHandler
.static final class
Http2ConnectionHandler
builder for theHttp2ServerHandler
. -
Method Summary
Modifier and TypeMethodDescriptionint
onDataRead
(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endOfStream) void
onGoAwayRead
(io.netty.channel.ChannelHandlerContext ctx, int lastStreamId, long errorCode, io.netty.buffer.ByteBuf debugData) void
onHeadersRead
(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endOfStream) void
onHeadersRead
(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream) void
onPingAckRead
(io.netty.channel.ChannelHandlerContext ctx, long data) void
onPingRead
(io.netty.channel.ChannelHandlerContext ctx, long data) void
onPriorityRead
(io.netty.channel.ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive) void
onPushPromiseRead
(io.netty.channel.ChannelHandlerContext ctx, int streamId, int promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers, int padding) void
onRstStreamRead
(io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode) void
onSettingsAckRead
(io.netty.channel.ChannelHandlerContext ctx) void
onSettingsRead
(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Settings settings) void
onUnknownFrame
(io.netty.channel.ChannelHandlerContext ctx, byte frameType, int streamId, io.netty.handler.codec.http2.Http2Flags flags, io.netty.buffer.ByteBuf payload) void
onWindowUpdateRead
(io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
-
Method Details
-
onDataRead
public int onDataRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.buffer.ByteBuf data, int padding, boolean endOfStream) throws io.netty.handler.codec.http2.Http2Exception - Specified by:
onDataRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Throws:
io.netty.handler.codec.http2.Http2Exception
-
onHeadersRead
public void onHeadersRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int padding, boolean endOfStream) throws io.netty.handler.codec.http2.Http2Exception - Specified by:
onHeadersRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Throws:
io.netty.handler.codec.http2.Http2Exception
-
onHeadersRead
public void onHeadersRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, io.netty.handler.codec.http2.Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream) throws io.netty.handler.codec.http2.Http2Exception - Specified by:
onHeadersRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Throws:
io.netty.handler.codec.http2.Http2Exception
-
onPriorityRead
public void onPriorityRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive) - Specified by:
onPriorityRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
-
onRstStreamRead
public void onRstStreamRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode) throws io.netty.handler.codec.http2.Http2Exception - Specified by:
onRstStreamRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Throws:
io.netty.handler.codec.http2.Http2Exception
-
onSettingsAckRead
public void onSettingsAckRead(io.netty.channel.ChannelHandlerContext ctx) - Specified by:
onSettingsAckRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
-
onSettingsRead
public void onSettingsRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Settings settings) - Specified by:
onSettingsRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
-
onPingRead
public void onPingRead(io.netty.channel.ChannelHandlerContext ctx, long data) - Specified by:
onPingRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
-
onPingAckRead
public void onPingAckRead(io.netty.channel.ChannelHandlerContext ctx, long data) - Specified by:
onPingAckRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
-
onPushPromiseRead
public void onPushPromiseRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int promisedStreamId, io.netty.handler.codec.http2.Http2Headers headers, int padding) - Specified by:
onPushPromiseRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
-
onGoAwayRead
public void onGoAwayRead(io.netty.channel.ChannelHandlerContext ctx, int lastStreamId, long errorCode, io.netty.buffer.ByteBuf debugData) throws io.netty.handler.codec.http2.Http2Exception - Specified by:
onGoAwayRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
- Throws:
io.netty.handler.codec.http2.Http2Exception
-
onWindowUpdateRead
public void onWindowUpdateRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement) - Specified by:
onWindowUpdateRead
in interfaceio.netty.handler.codec.http2.Http2FrameListener
-
onUnknownFrame
public void onUnknownFrame(io.netty.channel.ChannelHandlerContext ctx, byte frameType, int streamId, io.netty.handler.codec.http2.Http2Flags flags, io.netty.buffer.ByteBuf payload) - Specified by:
onUnknownFrame
in interfaceio.netty.handler.codec.http2.Http2FrameListener
-