java.lang.Object
io.helidon.webserver.accesslog.AbstractLogEntry
io.helidon.webserver.accesslog.HeaderLogEntry
- All Implemented Interfaces:
AccessLogEntry
Access log entry for header values.
-
Nested Class Summary
Nested Classes -
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 HeaderLogEntry.Builderbuilder(HeaderName headerName) Create a fluent API builder for a header log entry.static HeaderLogEntry.BuilderCreate a fluent API builder for a header log entry.static HeaderLogEntryCreate 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
-
Method Details
-
create
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
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
-
builder
Create a fluent API builder for a header log entry.- Parameters:
headerName- header name- Returns:
- a fluent API builder
-
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:
-