Package io.helidon.webserver.accesslog
Class TimeTakenLogEntry
java.lang.Object
io.helidon.webserver.accesslog.AbstractLogEntry
io.helidon.webserver.accesslog.TimeTakenLogEntry
- All Implemented Interfaces:
AccessLogEntry,Handler,BiConsumer<ServerRequest,ServerResponse>
Access log entry for time taken.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.helidon.webserver.Handler
Handler.EntityHandler<T> -
Field Summary
Fields inherited from class io.helidon.webserver.accesslog.AbstractLogEntry
DEFAULT_MAX_LENGTHFields inherited from interface io.helidon.webserver.accesslog.AccessLogEntry
NOT_AVAILABLE -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeTakenLogEntry.Builderbuilder()Create a new fluent API builder.static TimeTakenLogEntrycreate()Create a new time taken access log entry measuring in microseconds.protected StringdoApply(AccessLogContext context) Apply the "raw" log entry.Methods inherited from class io.helidon.webserver.accesslog.AbstractLogEntry
apply, maxLength, pad, sanitizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.webserver.accesslog.AccessLogEntry
acceptMethods inherited from interface java.util.function.BiConsumer
andThen
-
Method Details
-
create
Create a new time taken access log entry measuring in microseconds.- Returns:
- a new access log entry for time taken
-
builder
Create a new fluent API builder.- Returns:
- a new builder instance
-
doApply
Description copied from class:AbstractLogEntryApply the "raw" log entry. The result will go through common formatting, such as padding if configured.- Specified by:
doApplyin classAbstractLogEntry- Parameters:
context- context with access to information useful for access log entries- Returns:
- log entry
- See Also:
-