public class NettyHttp2Handler
extends io.netty.handler.codec.http2.Http2ConnectionHandler
implements io.netty.handler.codec.http2.Http2FrameListener
| Modifier and Type | Method and Description |
|---|---|
void |
channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
Connection |
getConnection() |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
int |
onDataRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.buffer.ByteBuf data,
int padding,
boolean endOfStream) |
void |
onError(io.netty.channel.ChannelHandlerContext ctx,
boolean outbound,
Throwable cause) |
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) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt) |
bind, channelActive, channelInactive, channelReadComplete, channelWritabilityChanged, close, closeStream, closeStreamLocal, closeStreamRemote, connect, connection, decode, decoder, deregister, disconnect, encoder, flush, frameWriter, goAway, gracefulShutdownTimeoutMillis, gracefulShutdownTimeoutMillis, handlerRemoved0, handleServerHeaderDecodeSizeError, isGracefulShutdownComplete, onConnectionError, onHttpClientUpgrade, onHttpServerUpgrade, onStreamError, read, resetStream, writeactualReadableBytes, callDecode, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecodechannelRegistered, channelUnregisteredpublic Connection getConnection()
public void channelRead(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
throws Exception
channelRead in interface io.netty.channel.ChannelInboundHandlerchannelRead in class io.netty.handler.codec.ByteToMessageDecoderExceptionpublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.handler.codec.http2.Http2ConnectionHandlerExceptionpublic 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
onDataRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic 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
onHeadersRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic 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
onHeadersRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onPriorityRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int streamDependency,
short weight,
boolean exclusive)
throws io.netty.handler.codec.http2.Http2Exception
onPriorityRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onRstStreamRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
long errorCode)
throws io.netty.handler.codec.http2.Http2Exception
onRstStreamRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onSettingsAckRead(io.netty.channel.ChannelHandlerContext ctx)
throws io.netty.handler.codec.http2.Http2Exception
onSettingsAckRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onError(io.netty.channel.ChannelHandlerContext ctx,
boolean outbound,
Throwable cause)
onError in interface io.netty.handler.codec.http2.Http2LifecycleManageronError in class io.netty.handler.codec.http2.Http2ConnectionHandlerpublic void onSettingsRead(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings settings)
throws io.netty.handler.codec.http2.Http2Exception
onSettingsRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onPingRead(io.netty.channel.ChannelHandlerContext ctx,
long data)
throws io.netty.handler.codec.http2.Http2Exception
onPingRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onPingAckRead(io.netty.channel.ChannelHandlerContext ctx,
long data)
throws io.netty.handler.codec.http2.Http2Exception
onPingAckRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onPushPromiseRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding)
throws io.netty.handler.codec.http2.Http2Exception
onPushPromiseRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onGoAwayRead(io.netty.channel.ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData)
throws io.netty.handler.codec.http2.Http2Exception
onGoAwayRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onWindowUpdateRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int windowSizeIncrement)
throws io.netty.handler.codec.http2.Http2Exception
onWindowUpdateRead in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void onUnknownFrame(io.netty.channel.ChannelHandlerContext ctx,
byte frameType,
int streamId,
io.netty.handler.codec.http2.Http2Flags flags,
io.netty.buffer.ByteBuf payload)
throws io.netty.handler.codec.http2.Http2Exception
onUnknownFrame in interface io.netty.handler.codec.http2.Http2FrameListenerio.netty.handler.codec.http2.Http2Exceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught in interface io.netty.channel.ChannelHandlerexceptionCaught in interface io.netty.channel.ChannelInboundHandlerexceptionCaught in class io.netty.handler.codec.http2.Http2ConnectionHandlerExceptionpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.handler.codec.ByteToMessageDecoderExceptionCopyright © 2019. All rights reserved.