Package io.helidon.webserver.accesslog
Interface AccessLogEntry
- All Known Implementing Classes:
AbstractLogEntry
,HeaderLogEntry
,HostLogEntry
,RequestLineLogEntry
,SizeLogEntry
,StatusLogEntry
,TimestampLogEntry
,TimeTakenLogEntry
,UserIdLogEntry
,UserLogEntry
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An entry generating data for access log.
Implementation MUST be thread safe.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
If an entry is not available, use this string as the result. -
Method Summary
Modifier and TypeMethodDescriptionapply
(AccessLogContext context) This method is called once the response is fully processed.
-
Field Details
-
NOT_AVAILABLE
If an entry is not available, use this string as the result.- See Also:
-
-
Method Details
-
apply
This method is called once the response is fully processed. TheAccessLogContext.serverResponse()
will return a completed response.- Parameters:
context
- context with access to information useful for access log entries- Returns:
- string representation of a log entry (such as a formatted date time, response time etc.)
-