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

pack-priv final Class AccessLogHandlerH2

extends BaseAccessLogHandler
Class Inheritance
Imports
io.netty.channel.ChannelHandler, .ChannelHandlerContext, .ChannelPromise, io.netty.handler.codec.http.HttpResponseStatus, io.netty.handler.codec.http2.Http2DataFrame, .Http2HeadersFrame, reactor.netty.channel.ChannelOperations, reactor.netty.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.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
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 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 io.netty.channel.ChannelInboundHandlerAdapter.channelRead.

Implements io.netty.channel.ChannelInboundHandler.channelRead.

Doc from io.netty.channel.ChannelInboundHandlerAdapter.channelRead.

Calls ChannelHandlerContext#fireChannelRead(Object) to forward to the next ChannelInboundHandler in the ChannelPipeline. Sub-classes may override this method to change behavior.

Annotations
@Override
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