public class HttpToHttp2ConnectionHandler extends Http2ConnectionHandler
See InboundHttp2ToHttpAdapter to get translation from HTTP/2 frames to HTTP/1.x objects.
ByteToMessageDecoder.CumulatorChannelHandler.Sharable, ChannelHandler.SkipCOMPOSITE_CUMULATOR, MERGE_CUMULATOR| Constructor and Description |
|---|
HttpToHttp2ConnectionHandler(boolean server,
Http2FrameListener listener) |
HttpToHttp2ConnectionHandler(Http2ConnectionDecoder.Builder decoderBuilder,
Http2ConnectionEncoder.Builder encoderBuilder) |
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 a
FullHttpMessage to HTTP/2 frames. |
channelActive, channelInactive, close, closeLocalSide, closeRemoteSide, closeStream, connection, decode, decoder, encoder, exceptionCaught, frameWriter, handlerAdded, handlerRemoved0, onConnectionError, onException, onHttpClientUpgrade, onHttpServerUpgrade, onStreamError, writeGoAway, writeRstStreamactualReadableBytes, callDecode, channelRead, channelReadComplete, decodeLast, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setSingleDecodebind, channelRegistered, channelUnregistered, channelWritabilityChanged, connect, deregister, disconnect, flush, isSharable, read, userEventTriggeredpublic HttpToHttp2ConnectionHandler(boolean server,
Http2FrameListener listener)
public HttpToHttp2ConnectionHandler(Http2Connection connection, Http2FrameListener listener)
public HttpToHttp2ConnectionHandler(Http2Connection connection, Http2FrameReader frameReader, Http2FrameWriter frameWriter, Http2FrameListener listener)
public HttpToHttp2ConnectionHandler(Http2ConnectionDecoder.Builder decoderBuilder, Http2ConnectionEncoder.Builder encoderBuilder)
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)
FullHttpMessage to HTTP/2 frames.write in interface ChannelHandlerwrite in class ChannelHandlerAdapterctx - 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.