ChannelInboundHandlerAdapter prior reactor.netty.channel.ChannelOperationsHandler
for handling H2/H2C use cases. HTTP/1.x use cases are delegated to
reactor.netty.channel.ChannelOperationsHandler without any interference.
Once the channel is activated, the upgrade is decided (H2C or HTTP/1.1) and in case H2/H2C the first SETTINGS frame
is received, this handler is not needed any more. Thus said channelInactive(ChannelHandlerContext)
is invoked only in case there are issues with the connection itself.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ConnectionObserver | |
| pack-priv static final Logger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| listener | back to summary |
|---|---|
| pack-priv final ConnectionObserver listener | |
| log | back to summary |
|---|---|
| pack-priv static final Logger log | |
| HttpTrafficHandler | back to summary |
|---|---|
| pack-priv HttpTrafficHandler(ConnectionObserver listener) | |
| channelActive | back to summary |
|---|---|
| public void channelActive(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Calls
| |
| channelInactive | back to summary |
|---|---|
| public void channelInactive(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Calls
| |
| channelRead | back to summary |
|---|---|
| public void channelRead(ChannelHandlerContext ctx, Object msg) Overrides io. Implements io. Doc from io. Calls
| |
| sendNewState | back to summary |
|---|---|
| pack-priv void sendNewState(Connection connection, ConnectionObserver. | |
| userEventTriggered | back to summary |
|---|---|
| public void userEventTriggered(ChannelHandlerContext ctx, Object evt) Overrides io. Implements io. Doc from io. Calls
| |