public class HttpToHttp2ConnectionHandler extends Http2ConnectionHandler
See InboundHttp2ToHttpAdapter
to get translation from HTTP/2 frames to HTTP/1.x objects.
ByteToMessageDecoder.Cumulator
ChannelHandler.Sharable, ChannelHandler.Skip
COMPOSITE_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, writeRstStream
actualReadableBytes, callDecode, channelRead, channelReadComplete, decodeLast, handlerRemoved, internalBuffer, isSingleDecode, setCumulator, setSingleDecode
bind, channelRegistered, channelUnregistered, channelWritabilityChanged, connect, deregister, disconnect, flush, isSharable, read, userEventTriggered
public 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 ChannelHandler
write
in class ChannelHandlerAdapter
ctx
- 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.