public class HttpToHttp2ConnectionHandler extends Http2ConnectionHandler
See InboundHttp2ToHttpAdapter to get translation from HTTP/2 frames to HTTP/1.x objects.
ByteToMessageDecoder.CumulatorChannelHandler.SharableCOMPOSITE_CUMULATOR, MERGE_CUMULATOR| Constructor and Description |
|---|
HttpToHttp2ConnectionHandler(boolean server,
Http2FrameListener listener) |
HttpToHttp2ConnectionHandler(Http2ConnectionDecoder decoder,
Http2ConnectionEncoder encoder) |
HttpToHttp2ConnectionHandler(Http2Connection connection,
Http2FrameListener listener) |
HttpToHttp2ConnectionHandler(Http2Connection connection,
Http2FrameReader frameReader,
Http2FrameWriter frameWriter,
Http2FrameListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
write(ChannelHandlerContext ctx,
Object msg,
ChannelPromise promise)
Handles conversion of
HttpMessage and HttpContent to HTTP/2 frames. |
bind, channelActive, channelInactive, channelReadComplete, channelWritabilityChanged, close, closeStream, closeStreamLocal, closeStreamRemote, connect, connection, decode, decoder, deregister, disconnect, encoder, exceptionCaught, flush, frameWriter, goAway, gracefulShutdownTimeoutMillis, gracefulShutdownTimeoutMillis, handlerAdded, handlerRemoved0, isGracefulShutdownComplete, onConnectionError, onException, onHttpClientUpgrade, onHttpServerUpgrade, onStreamError, read, resetStreamactualReadableBytes, callDecode, channelRead, decodeLast, discardSomeReadBytes, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setSingleDecodechannelRegistered, channelUnregistered, userEventTriggeredisSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerRemovedpublic HttpToHttp2ConnectionHandler(boolean server,
Http2FrameListener listener)
public HttpToHttp2ConnectionHandler(Http2Connection connection, Http2FrameListener listener)
public HttpToHttp2ConnectionHandler(Http2Connection connection, Http2FrameReader frameReader, Http2FrameWriter frameWriter, Http2FrameListener listener)
public HttpToHttp2ConnectionHandler(Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder)
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)
HttpMessage and HttpContent to HTTP/2 frames.write in interface ChannelOutboundHandlerwrite in class Http2ConnectionHandlerctx - the ChannelHandlerContext for which the write operation is mademsg - the message to writepromise - the ChannelPromise to notify once the operation completesCopyright © 2008–2015 The Netty Project. All rights reserved.