public interface AccessLogArgProvider
Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
accessDateTime()
Returns the date-time of the moment when the request was received.
|
ConnectionInformation |
connectionInformation()
Returns the information about the current connection.
|
long |
contentLength()
Returns the response content length.
|
Map<CharSequence,Set<Cookie>> |
cookies()
Returns resolved HTTP cookies.
|
long |
duration()
Returns the request/response duration.
|
CharSequence |
method()
Returns the name of this method, (e.g.
|
String |
protocol()
Returns the protocol version, (e.g.
|
SocketAddress |
remoteAddress()
Deprecated.
as of 1.0.26. Use
ConnectionInformation.connectionRemoteAddress() |
CharSequence |
requestHeader(CharSequence name)
Returns the value of a request header with the specified name
or
null is case such request header does not exist. |
CharSequence |
responseHeader(CharSequence name)
Returns the value of a response header with the specified name
or
null is case such response header does not exist. |
CharSequence |
status()
Returns the response status, (e.g.
|
CharSequence |
uri()
Returns the requested URI, (e.g.
|
String |
user()
Returns the user identifier.
|
String |
zonedDateTime()
Deprecated.
as of 1.0.6. Prefer using
accessDateTime() This method will be removed in version 1.2.0. |
@Nullable @Deprecated String zonedDateTime()
accessDateTime()
This method will be removed in version 1.2.0.@Nullable ZonedDateTime accessDateTime()
@Nullable @Deprecated SocketAddress remoteAddress()
ConnectionInformation.connectionRemoteAddress()
null
in case of Unix Domain Sockets.@Nullable ConnectionInformation connectionInformation()
Note that the ConnectionInformation.remoteAddress()
will return the forwarded
remote client address if the server is configured in forwarded mode.
HttpServer.forwarded(BiFunction)
@Nullable CharSequence method()
@Nullable CharSequence uri()
@Nullable String protocol()
@Nullable CharSequence status()
long contentLength()
long duration()
@Nullable CharSequence requestHeader(CharSequence name)
null
is case such request header does not exist.name
- the request header name@Nullable CharSequence responseHeader(CharSequence name)
null
is case such response header does not exist.name
- the response header name@Nullable Map<CharSequence,Set<Cookie>> 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.