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

pack-priv final Class AccessLogHandlerH1

extends BaseAccessLogHandler
Class Inheritance
Imports
io.netty.buffer.ByteBuf, .ByteBufHolder, io.netty.channel.ChannelHandler, .ChannelHandlerContext, .ChannelPromise, io.netty.handler.codec.http.HttpResponse, .HttpResponseStatus, .HttpUtil, .LastHttpContent, reactor.netty.channel.ChannelOperations, reactor.netty.http.server.HttpServerRequest, reactor.util.annotation.Nullable, java.util.function.Function

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

Field Summary

Modifier and TypeField and Description
pack-priv AccessLogArgProviderH1
Inherited from reactor.netty.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
write(ChannelHandlerContext
the ChannelHandlerContext for which the write operation is made
ctx
,
Object
the message to write
msg
,
ChannelPromise
the ChannelPromise to notify once the operation completes
promise
)

Overrides io.netty.channel.ChannelDuplexHandler.write.

Implements io.netty.channel.ChannelOutboundHandler.write.

Calls ChannelHandlerContext#write(Object, ChannelPromise) to forward to the next ChannelOutboundHandler in the ChannelPipeline.
Inherited from reactor.netty.http.server.logging.BaseAccessLogHandler:
applyAddressapplyServerInfos

Field Detail

accessLogArgProviderback to summary
pack-priv AccessLogArgProviderH1 accessLogArgProvider

Constructor Detail

AccessLogHandlerH1back to summary
pack-priv AccessLogHandlerH1(Function<AccessLogArgProvider, AccessLog> accessLog)

Method Detail

writeback to summary
public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise)

Overrides io.netty.channel.ChannelDuplexHandler.write.

Implements io.netty.channel.ChannelOutboundHandler.write.

Doc from io.netty.channel.ChannelDuplexHandler.write.

Calls ChannelHandlerContext#write(Object, ChannelPromise) to forward to the next ChannelOutboundHandler in the ChannelPipeline. Sub-classes may override this method to change behavior.

Parameters
ctx:ChannelHandlerContext

Doc from io.netty.channel.ChannelOutboundHandler.write.

the ChannelHandlerContext for which the write operation is made

msg:Object

Doc from io.netty.channel.ChannelOutboundHandler.write.

the message to write

promise:ChannelPromise

Doc from io.netty.channel.ChannelOutboundHandler.write.

the ChannelPromise to notify once the operation completes

Annotations
@Override
@SuppressWarnings:FutureReturnValueIgnored