@UnstableApi public class HttpToHttp2ConnectionHandler extends Http2ConnectionHandler
请参阅InboundHttp2ToHttpAdapter以从HTTP / 2帧转换为HTTP / 1.x对象。
ByteToMessageDecoder.CumulatorChannelHandler.SharableCOMPOSITE_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, resetStreamactualReadableBytes, callDecode, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggeredchannelRegistered, channelUnregisteredensureNotSharable, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerRemovedprotected 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.