public interface AccessLogArgProvider
Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
accessDateTime()
Returns the date-time of the moment when the request was received
|
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()
Returns the address of the remote peer or
null in case of Unix Domain Sockets. |
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 SocketAddress remoteAddress()
null
in case of Unix Domain Sockets.@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.