@UnstableApi public class HttpToHttp2ConnectionHandler extends Http2ConnectionHandler
请参阅InboundHttp2ToHttpAdapter
以从HTTP / 2帧转换为HTTP / 1.x对象。
ByteToMessageDecoder.Cumulator
ChannelHandler.Sharable
COMPOSITE_CUMULATOR, MERGE_CUMULATOR
Modifier | Constructor and Description |
---|---|
protected |
HttpToHttp2ConnectionHandler(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings, boolean validateHeaders) |
Modifier and Type | Method and Description |
---|---|
void |
write(ChannelHandlerContext ctx, java.lang.Object msg, ChannelPromise promise)
将 HttpMessage 和HttpContent 转换为HTTP / 2帧。
|
bind, channelActive, channelInactive, channelReadComplete, channelWritabilityChanged, close, closeStream, closeStreamLocal, closeStreamRemote, connect, connection, decode, decoder, deregister, disconnect, encoder, exceptionCaught, flush, frameWriter, goAway, gracefulShutdownTimeoutMillis, gracefulShutdownTimeoutMillis, handlerAdded, handlerRemoved0, handleServerHeaderDecodeSizeError, isGracefulShutdownComplete, onConnectionError, onError, onHttpClientUpgrade, onHttpServerUpgrade, onStreamError, read, resetStream
actualReadableBytes, callDecode, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
channelRegistered, channelUnregistered
ensureNotSharable, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerRemoved
protected HttpToHttp2ConnectionHandler(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings, boolean validateHeaders)
public void write(ChannelHandlerContext ctx, java.lang.Object msg, ChannelPromise promise)
HttpMessage
和HttpContent
转换为HTTP / 2帧。
write
接口
ChannelOutboundHandler
write
在班级
Http2ConnectionHandler
ctx
- 为其写入操作的ChannelHandlerContext
msg
- 写信息
promise
- ChannelPromise
在操作完成后通知
Copyright © 2008–2018 The Netty Project. All rights reserved.