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, write
actualReadableBytes, callDecode, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode
channelRegistered, channelUnregistered
public void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered
in interface io.netty.channel.ChannelInboundHandler
userEventTriggered
in class io.netty.handler.codec.ByteToMessageDecoder
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.handler.codec.http2.Http2ConnectionHandler
Exception
public 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.Http2FrameListener
public 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.Http2FrameListener
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)
onHeadersRead
in interface io.netty.handler.codec.http2.Http2FrameListener
public void onPriorityRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive)
onPriorityRead
in interface io.netty.handler.codec.http2.Http2FrameListener
public void onRstStreamRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, long errorCode)
onRstStreamRead
in interface io.netty.handler.codec.http2.Http2FrameListener
public void onSettingsAckRead(io.netty.channel.ChannelHandlerContext ctx)
onSettingsAckRead
in interface io.netty.handler.codec.http2.Http2FrameListener
public void onSettingsRead(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http2.Http2Settings settings)
onSettingsRead
in interface io.netty.handler.codec.http2.Http2FrameListener
public void onPingRead(io.netty.channel.ChannelHandlerContext ctx, long data)
onPingRead
in interface io.netty.handler.codec.http2.Http2FrameListener
public void onPingAckRead(io.netty.channel.ChannelHandlerContext ctx, long data)
onPingAckRead
in interface io.netty.handler.codec.http2.Http2FrameListener
public 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.Http2FrameListener
public void onGoAwayRead(io.netty.channel.ChannelHandlerContext ctx, int lastStreamId, long errorCode, io.netty.buffer.ByteBuf debugData)
onGoAwayRead
in interface io.netty.handler.codec.http2.Http2FrameListener
public void onWindowUpdateRead(io.netty.channel.ChannelHandlerContext ctx, int streamId, int windowSizeIncrement)
onWindowUpdateRead
in interface io.netty.handler.codec.http2.Http2FrameListener
public 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.Http2FrameListener
Copyright © 2008–2019 The Netty Project. All rights reserved.