@UnstableApi public class InboundHttpToHttp2Adapter extends ChannelInboundHandlerAdapter
ChannelHandler.Sharable
Modifier and Type | Field and Description |
---|---|
private Http2Connection |
connection |
private Http2FrameListener |
listener |
Constructor and Description |
---|
InboundHttpToHttp2Adapter(Http2Connection connection,
Http2FrameListener listener) |
Modifier and Type | Method and Description |
---|---|
void |
channelRead(ChannelHandlerContext ctx,
java.lang.Object msg)
Calls
ChannelHandlerContext.fireChannelRead(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline . |
private int |
getStreamId(HttpHeaders httpHeaders) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
private final Http2Connection connection
private final Http2FrameListener listener
public InboundHttpToHttp2Adapter(Http2Connection connection, Http2FrameListener listener)
private int getStreamId(HttpHeaders httpHeaders)
public void channelRead(ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
ChannelInboundHandlerAdapter
ChannelHandlerContext.fireChannelRead(Object)
to forward
to the next ChannelInboundHandler
in the ChannelPipeline
.
Sub-classes may override this method to change behavior.channelRead
in interface ChannelInboundHandler
channelRead
in class ChannelInboundHandlerAdapter
java.lang.Exception