Package io.helidon.webserver.accesslog
Class HeaderLogEntry
- java.lang.Object
-
- io.helidon.webserver.accesslog.AbstractLogEntry
-
- io.helidon.webserver.accesslog.HeaderLogEntry
-
- All Implemented Interfaces:
AccessLogEntry,Handler,BiConsumer<ServerRequest,ServerResponse>
public final class HeaderLogEntry extends AbstractLogEntry
Access log entry for header values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHeaderLogEntry.BuilderFluent API builder forHeaderLogEntry.-
Nested 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_LENGTH
-
Fields inherited from interface io.helidon.webserver.accesslog.AccessLogEntry
NOT_AVAILABLE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HeaderLogEntry.Builderbuilder(String headerName)Create a fluent API builder for a header log entry.static HeaderLogEntrycreate(String headerName)Create a header log entry for a specified header name with default configuration.protected StringdoApply(AccessLogContext context)Apply the "raw" log entry.-
Methods inherited from class io.helidon.webserver.accesslog.AbstractLogEntry
apply, maxLength, pad, sanitize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.webserver.accesslog.AccessLogEntry
accept
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-
-
-
Method Detail
-
create
public static HeaderLogEntry create(String headerName)
Create a header log entry for a specified header name with default configuration.- Parameters:
headerName- name of HTTP header to print to the access log- Returns:
- a new header log entry
-
builder
public static HeaderLogEntry.Builder builder(String headerName)
Create a fluent API builder for a header log entry.- Parameters:
headerName- name of HTTP header to print to the access log- Returns:
- a fluent API builder
-
doApply
protected String doApply(AccessLogContext context)
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:
AccessLogEntry.NOT_AVAILABLE
-
-