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.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. |
bind, channelActive, channelInactive, close, closeLocalSide, closeRemoteSide, closeStream, connect, connection, decode, decoder, deregister, disconnect, encoder, exceptionCaught, flush, frameWriter, handlerAdded, handlerRemoved0, onConnectionError, onException, onHttpClientUpgrade, onHttpServerUpgrade, onStreamError, read, writeGoAway, writeRstStreamactualReadableBytes, callDecode, channelRead, channelReadComplete, decodeLast, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setSingleDecodechannelRegistered, channelUnregistered, channelWritabilityChanged, 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.Builder decoderBuilder, Http2ConnectionEncoder.Builder encoderBuilder)
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)
FullHttpMessage 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.