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

pack-priv abstract Class AbstractAccessLogArgProvider<SELF extends reactor.netty5.http.server.logging.AbstractAccessLogArgProvider<SELF>>

extends Object
implements AccessLogArgProvider, Supplier<SELF extends AbstractAccessLogArgProvider<SELF>>
Class Inheritance
All Implemented Interfaces
java.util.function.Supplier, reactor.netty5.http.server.logging.AccessLogArgProvider
Known Direct Subclasses
reactor.netty5.http.server.logging.AccessLogArgProviderH1, reactor.netty5.http.server.logging.AccessLogArgProviderH2
Imports
io.netty5.handler.codec.http.HttpMethod, io.netty5.handler.codec.http.headers.HttpCookiePair, reactor.netty5.ReactorNetty, reactor.util.annotation.Nullable, java.net.SocketAddress, java.time.ZonedDateTime, java.time.format.DateTimeFormatter, java.util.Map, .Set, java.util.function.Supplier

Author
limaoning

Field Summary

Modifier and TypeField and Description
pack-priv ZonedDateTime
pack-priv boolean
pack-priv long
pack-priv Map<CharSequence, Set<HttpCookiePair>>
pack-priv static final DateTimeFormatter
pack-priv CharSequence
pack-priv static final String
pack-priv String
pack-priv final SocketAddress
pack-priv long
pack-priv CharSequence
pack-priv final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ZonedDateTime
accessDateTime()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.accessDateTime.

Returns the date-time of the moment when the request was received
pack-priv SELF
chunked(boolean chunked)

pack-priv void
clear()

Remove non-final fields for reuse.

public long
public Map<CharSequence, Set<HttpCookiePair>>
pack-priv SELF
public long
duration()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.duration.

Returns the request/response duration.
pack-priv SELF
increaseContentLength(long contentLength)

public CharSequence
method()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.method.

Returns the name of this method, (e.g. "GET").
pack-priv void
onRequest()

Initialize some fields (e.g. ZonedDateTime startTime).

public String
protocol()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.protocol.

Returns the protocol version, (e.g. "HTTP/1.1" or "HTTP/2.0").
public SocketAddress
remoteAddress()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.remoteAddress.

Returns the address of the remote peer or null in case of Unix Domain Sockets.
public CharSequence
uri()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.uri.

Returns the requested URI, (e.g. "/hello").
public String
user()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.user.

Returns the user identifier.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accessDateTimeback to summary
pack-priv ZonedDateTime accessDateTime
chunkedback to summary
pack-priv boolean chunked
contentLengthback to summary
pack-priv long contentLength
cookiesback to summary
pack-priv Map<CharSequence, Set<HttpCookiePair>> cookies
DATE_TIME_FORMATTERback to summary
pack-priv static final DateTimeFormatter DATE_TIME_FORMATTER
methodback to summary
pack-priv CharSequence method
MISSINGback to summary
pack-priv static final String MISSING
protocolback to summary
pack-priv String protocol
remoteAddressback to summary
pack-priv final SocketAddress remoteAddress
startTimeback to summary
pack-priv long startTime
uriback to summary
pack-priv CharSequence uri
userback to summary
pack-priv final String user

Constructor Detail

AbstractAccessLogArgProviderback to summary
pack-priv AbstractAccessLogArgProvider(SocketAddress remoteAddress)

Method Detail

accessDateTimeback to summary
public ZonedDateTime accessDateTime()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.accessDateTime.

Doc from reactor.netty5.http.server.logging.AccessLogArgProvider.accessDateTime.

Returns the date-time of the moment when the request was received

Returns:ZonedDateTime

zoned date-time

Annotations
@Override
@Nullable
chunkedback to summary
pack-priv SELF chunked(boolean chunked)
clearback to summary
pack-priv void clear()

Remove non-final fields for reuse.

contentLengthback to summary
public long contentLength()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.contentLength.

Doc from reactor.netty5.http.server.logging.AccessLogArgProvider.contentLength.

Returns the response content length.

Returns:long

the response content length

Annotations
@Override
cookiesback to summary
public Map<CharSequence, Set<HttpCookiePair>> cookies()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.cookies.

Doc from reactor.netty5.http.server.logging.AccessLogArgProvider.cookies.

Returns resolved HTTP cookies.

Warning

Be cautious with cookies information and what kind of sensitive data is written to the logs. By default, no cookies information is written to the access log.

Returns:Map<CharSequence, Set<HttpCookiePair>>

Resolved HTTP cookies

Annotations
@Override
@Nullable
cookiesback to summary
pack-priv SELF cookies(Map<CharSequence, Set<HttpCookiePair>> cookies)
durationback to summary
public long duration()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.duration.

Doc from reactor.netty5.http.server.logging.AccessLogArgProvider.duration.

Returns the request/response duration.

Returns:long

the request/response duration in milliseconds

Annotations
@Override
increaseContentLengthback to summary
pack-priv SELF increaseContentLength(long contentLength)
methodback to summary
public CharSequence method()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.method.

Doc from reactor.netty5.http.server.logging.AccessLogArgProvider.method.

Returns the name of this method, (e.g. "GET").

Returns:CharSequence

the name of this method

Annotations
@Override
@Nullable
onRequestback to summary
pack-priv void onRequest()

Initialize some fields (e.g. ZonedDateTime startTime). Should be called when a new request is received.

protocolback to summary
public String protocol()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.protocol.

Doc from reactor.netty5.http.server.logging.AccessLogArgProvider.protocol.

Returns the protocol version, (e.g. "HTTP/1.1" or "HTTP/2.0").

Returns:String

the protocol version

Annotations
@Override
@Nullable
remoteAddressback to summary
public SocketAddress remoteAddress()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.remoteAddress.

Doc from reactor.netty5.http.server.logging.AccessLogArgProvider.remoteAddress.

Returns the address of the remote peer or null in case of Unix Domain Sockets.

Returns:SocketAddress

the peer's address

Annotations
@Override
@Nullable
uriback to summary
public CharSequence uri()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.uri.

Doc from reactor.netty5.http.server.logging.AccessLogArgProvider.uri.

Returns the requested URI, (e.g. "/hello").

Returns:CharSequence

the requested URI

Annotations
@Override
@Nullable
userback to summary
public String user()

Implements reactor.netty5.http.server.logging.AccessLogArgProvider.user.

Doc from reactor.netty5.http.server.logging.AccessLogArgProvider.user.

Returns the user identifier.

Returns:String

the user identifier

Annotations
@Override
@Nullable