Top Description Fields Constructors Methods
reactor.netty5.http.server.logging

pack-priv final Class AccessLogHandlerH2

extends BaseAccessLogHandler
Class Inheritance
Imports
io.netty5.channel.ChannelHandler, .ChannelHandlerContext, io.netty5.handler.codec.http2.Http2DataFrame, .Http2HeadersFrame, io.netty5.util.concurrent.Future, reactor.netty5.channel.ChannelOperations, reactor.netty5.http.server.HttpServerInfos, reactor.util.annotation.Nullable, java.util.function.Function

ChannelHandler for access log of HTTP/2.0.
Authors
Violeta Georgieva, limaoning

Field Summary

Modifier and TypeField and Description
pack-priv AccessLogArgProviderH2
Inherited from reactor.netty5.http.server.logging.BaseAccessLogHandler:
accessLogDEFAULT_ACCESS_LOGDEFAULT_LOG_FORMAT

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
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.
public Future<Void>
write(ChannelHandlerContext
the ChannelHandlerContext for which the write operation is made
ctx
,
Object
the message to write
msg
)

Overrides default io.netty5.channel.ChannelHandler.write.

Called once a write operation is made.
Inherited from reactor.netty5.http.server.logging.BaseAccessLogHandler:
applyAddress

Field Detail

accessLogArgProviderback to summary
pack-priv AccessLogArgProviderH2 accessLogArgProvider

Constructor Detail

AccessLogHandlerH2back to summary
pack-priv AccessLogHandlerH2(Function<AccessLogArgProvider, AccessLog> accessLog)

Method Detail

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
writeback to summary
public Future<Void> write(ChannelHandlerContext ctx, Object msg)

Overrides default io.netty5.channel.ChannelHandler.write.

Doc from io.netty5.channel.ChannelHandler.write.

Called once a write operation is made. The write operation will write the messages through the ChannelPipeline. Those are then ready to be flushed to the actual Channel once Channel#flush() is called.

Parameters
ctx:ChannelHandlerContext

the ChannelHandlerContext for which the write operation is made

msg:Object

the message to write

Returns:Future<Void>

the Future which will be notified once the operation completes.

Annotations
@Override