Package io.helidon.webserver.accesslog
Interface AccessLogEntry
- 
- All Superinterfaces:
- BiConsumer<ServerRequest,ServerResponse>,- Handler
 - 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.
 
 @FunctionalInterface public interface AccessLogEntry extends Handler An entry generating data for access log. Implementation MUST be thread safe.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface io.helidon.webserver.HandlerHandler.EntityHandler<T>
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static StringNOT_AVAILABLEIf an entry is not available, use this string as the result.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(ServerRequest req, ServerResponse res)This method allows for each log entry to register anything on the request and/or response.Stringapply(AccessLogContext context)This method is called once the response is fully processed.- 
Methods inherited from interface java.util.function.BiConsumerandThen
 
- 
 
- 
- 
- 
Field Detail- 
NOT_AVAILABLEstatic final String NOT_AVAILABLE If an entry is not available, use this string as the result.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
acceptdefault void accept(ServerRequest req, ServerResponse res) This method allows for each log entry to register anything on the request and/or response. As the log entry is shared by all threads, make sure the handling is implemented as thread safe.- Specified by:
- acceptin interface- BiConsumer<ServerRequest,ServerResponse>
- Specified by:
- acceptin interface- Handler
- Parameters:
- req- an HTTP server request.
- res- an HTTP server response.
 
 - 
applyString apply(AccessLogContext context) 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.)
 
 
- 
 
-