public final class HelloWorldHttp2Handler
extends io.netty.handler.codec.http2.Http2ConnectionHandler
implements io.netty.handler.codec.http2.Http2FrameListener
| Modifier and Type | Method and Description |
|---|---|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
int |
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) |
void |
userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
Handles the cleartext HTTP upgrade event.
|
bind, channelActive, channelInactive, channelReadComplete, channelWritabilityChanged, close, closeStream, closeStreamLocal, closeStreamRemote, connect, connection, decode, decoder, deregister, disconnect, encoder, flush, frameWriter, goAway, gracefulShutdownTimeoutMillis, gracefulShutdownTimeoutMillis, handlerAdded, handlerRemoved0, handleServerHeaderDecodeSizeError, isGracefulShutdownComplete, onConnectionError, onError, onHttpClientUpgrade, onHttpServerUpgrade, onStreamError, read, resetStream, writeactualReadableBytes, callDecode, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecodechannelRegistered, channelUnregisteredpublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered in interface io.netty.channel.ChannelInboundHandleruserEventTriggered in class io.netty.handler.codec.ByteToMessageDecoderExceptionpublic 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 int onDataRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.buffer.ByteBuf data,
int padding,
boolean endOfStream)
onDataRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onHeadersRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding,
boolean endOfStream)
onHeadersRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic 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)
onHeadersRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onPriorityRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int streamDependency,
short weight,
boolean exclusive)
onPriorityRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onRstStreamRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
long errorCode)
onRstStreamRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onSettingsAckRead(io.netty.channel.ChannelHandlerContext ctx)
onSettingsAckRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onSettingsRead(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings settings)
onSettingsRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onPingRead(io.netty.channel.ChannelHandlerContext ctx,
long data)
onPingRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onPingAckRead(io.netty.channel.ChannelHandlerContext ctx,
long data)
onPingAckRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onPushPromiseRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int promisedStreamId,
io.netty.handler.codec.http2.Http2Headers headers,
int padding)
onPushPromiseRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onGoAwayRead(io.netty.channel.ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData)
onGoAwayRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onWindowUpdateRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int windowSizeIncrement)
onWindowUpdateRead in interface io.netty.handler.codec.http2.Http2FrameListenerpublic void onUnknownFrame(io.netty.channel.ChannelHandlerContext ctx,
byte frameType,
int streamId,
io.netty.handler.codec.http2.Http2Flags flags,
io.netty.buffer.ByteBuf payload)
onUnknownFrame in interface io.netty.handler.codec.http2.Http2FrameListenerCopyright © 2008–2024 The Netty Project. All rights reserved.