Class SizeLogEntry
java.lang.Object
io.helidon.reactive.webserver.accesslog.AbstractLogEntry
io.helidon.reactive.webserver.accesslog.SizeLogEntry
- All Implemented Interfaces:
AccessLogEntry,Handler,BiConsumer<ServerRequest,ServerResponse>
Access log entry for entity size.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.helidon.reactive.webserver.Handler
Handler.EntityHandler<T> -
Field Summary
Fields inherited from class io.helidon.reactive.webserver.accesslog.AbstractLogEntry
DEFAULT_MAX_LENGTHFields inherited from interface io.helidon.reactive.webserver.accesslog.AccessLogEntry
NOT_AVAILABLE -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ServerRequest req, ServerResponse res) This method allows for each log entry to register anything on the request and/or response.static SizeLogEntry.Builderbuilder()Create a new fluent API builder.static SizeLogEntrycreate()Create a new size log entry instance.doApply(AccessLogContext context) Apply the "raw" log entry.Methods inherited from class io.helidon.reactive.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 java.util.function.BiConsumer
andThen
-
Method Details
-
create
Create a new size log entry instance.- Returns:
- a new access log entry for entity size
- See Also:
-
builder
Create a new fluent API builder.- Returns:
- a new builder instance
-
accept
Description copied from interface:AccessLogEntryThis 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.- Parameters:
req- an HTTP server request.res- an HTTP server response.
-
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:
-