public final class Http2ServerChannelHandler
extends io.netty.handler.codec.http2.Http2ConnectionHandler
implements io.netty.handler.codec.http2.Http2FrameListener
| 限定符和类型 | 方法和说明 |
|---|---|
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
protected void |
handleRequest(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers http2Headers,
io.netty.buffer.ByteBuf data) |
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) |
protected void |
sendHttp2Response(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http.HttpResponseStatus status,
String result) |
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, handlerAdded, handlerRemoved0, handleServerHeaderDecodeSizeError, isGracefulShutdownComplete, onConnectionError, onError, onHttpClientUpgrade, onHttpServerUpgrade, onStreamError, read, resetStream, writeactualReadableBytes, callDecode, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecodepublic void userEventTriggered(io.netty.channel.ChannelHandlerContext ctx,
Object evt)
throws Exception
userEventTriggered 在接口中 io.netty.channel.ChannelInboundHandleruserEventTriggered 在类中 io.netty.handler.codec.ByteToMessageDecoderExceptionpublic void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
throws Exception
exceptionCaught 在接口中 io.netty.channel.ChannelHandlerexceptionCaught 在接口中 io.netty.channel.ChannelInboundHandlerexceptionCaught 在类中 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 在接口中 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 在接口中 io.netty.handler.codec.http2.Http2FrameListenerprotected void handleRequest(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http2.Http2Headers http2Headers,
io.netty.buffer.ByteBuf data)
protected void sendHttp2Response(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
io.netty.handler.codec.http.HttpResponseStatus status,
String result)
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 在接口中 io.netty.handler.codec.http2.Http2FrameListenerpublic void onPriorityRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int streamDependency,
short weight,
boolean exclusive)
onPriorityRead 在接口中 io.netty.handler.codec.http2.Http2FrameListenerpublic void onRstStreamRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
long errorCode)
onRstStreamRead 在接口中 io.netty.handler.codec.http2.Http2FrameListenerpublic void onSettingsAckRead(io.netty.channel.ChannelHandlerContext ctx)
onSettingsAckRead 在接口中 io.netty.handler.codec.http2.Http2FrameListenerpublic void onSettingsRead(io.netty.channel.ChannelHandlerContext ctx,
io.netty.handler.codec.http2.Http2Settings settings)
onSettingsRead 在接口中 io.netty.handler.codec.http2.Http2FrameListenerpublic void onPingRead(io.netty.channel.ChannelHandlerContext ctx,
long data)
onPingRead 在接口中 io.netty.handler.codec.http2.Http2FrameListenerpublic void onPingAckRead(io.netty.channel.ChannelHandlerContext ctx,
long data)
onPingAckRead 在接口中 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 在接口中 io.netty.handler.codec.http2.Http2FrameListenerpublic void onGoAwayRead(io.netty.channel.ChannelHandlerContext ctx,
int lastStreamId,
long errorCode,
io.netty.buffer.ByteBuf debugData)
onGoAwayRead 在接口中 io.netty.handler.codec.http2.Http2FrameListenerpublic void onWindowUpdateRead(io.netty.channel.ChannelHandlerContext ctx,
int streamId,
int windowSizeIncrement)
onWindowUpdateRead 在接口中 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 在接口中 io.netty.handler.codec.http2.Http2FrameListenerCopyright © 2008–2018 The Ant Financial. All rights reserved.