Top Description Fields Constructors Methods
reactor.netty5.http.client

pack-priv final Class HttpTrafficHandler

extends ChannelHandlerAdapter
Class Inheritance
Imports
io.netty5.channel.Channel, .ChannelHandlerAdapter, .ChannelHandlerContext, io.netty5.handler.codec.http2.Http2SettingsFrame, reactor.netty5.Connection, .ConnectionObserver, .NettyPipeline, reactor.netty5.channel.ChannelOperations, reactor.util.Logger, .Loggers

ChannelHandlerAdapter prior reactor.netty5.channel.ChannelOperationsHandler for handling H2/H2C use cases. HTTP/1.x use cases are delegated to reactor.netty5.channel.ChannelOperationsHandler without any interference.
Author
Violeta Georgieva
Since
1.0.0

Field Summary

Modifier and TypeField and Description
pack-priv final ConnectionObserver
pack-priv static final Logger

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
public void
channelInboundEvent(ChannelHandlerContext ctx, Object evt)

Overrides default io.netty5.channel.ChannelHandler.channelInboundEvent.

Gets called if a custom inbound event happened.
public void
channelRead(ChannelHandlerContext ctx, Object msg)

Overrides default io.netty5.channel.ChannelHandler.channelRead.

Invoked when the current Channel has read a message from the peer.
pack-priv void

Field Detail

listenerback to summary
pack-priv final ConnectionObserver listener
logback to summary
pack-priv static final Logger log

Constructor Detail

HttpTrafficHandlerback to summary
pack-priv HttpTrafficHandler(ConnectionObserver listener)

Method Detail

channelActiveback to summary
public void channelActive(ChannelHandlerContext ctx)

Overrides default io.netty5.channel.ChannelHandler.channelActive.

Doc from io.netty5.channel.ChannelHandler.channelActive.

The Channel of the ChannelHandlerContext is now active

Annotations
@Override
channelInboundEventback to summary
public void channelInboundEvent(ChannelHandlerContext ctx, Object evt)

Overrides default io.netty5.channel.ChannelHandler.channelInboundEvent.

Doc from io.netty5.channel.ChannelHandler.channelInboundEvent.

Gets called if a custom inbound event happened.

Annotations
@Override
channelReadback to summary
public void channelRead(ChannelHandlerContext ctx, Object msg)

Overrides default io.netty5.channel.ChannelHandler.channelRead.

Doc from io.netty5.channel.ChannelHandler.channelRead.

Invoked when the current Channel has read a message from the peer.

Annotations
@Override
sendNewStateback to summary
pack-priv void sendNewState(Connection connection, ConnectionObserver.State state)