- java.lang.Object
-
- io.helidon.webserver.accesslog.AbstractLogEntry
-
- io.helidon.webserver.accesslog.HostLogEntry
-
- All Implemented Interfaces:
AccessLogEntry
,Handler
,BiConsumer<ServerRequest,ServerResponse>
public final class HostLogEntry extends AbstractLogEntry
Access log entry for host (IP) values.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HostLogEntry.Builder
A fluent API builder forHostLogEntry
.-
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 HostLogEntry.Builder
builder()
Create a new fluent API builder.static HostLogEntry
create()
Create a new host log entry.protected String
doApply(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 HostLogEntry create()
Create a new host log entry.- Returns:
- a new access log entry for host
- See Also:
AccessLogSupport.Builder.add(AccessLogEntry)
-
builder
public static HostLogEntry.Builder builder()
Create a new fluent API builder.- Returns:
- a new builder instance
-
doApply
protected String doApply(AccessLogContext context)
Description copied from class:AbstractLogEntry
Apply the "raw" log entry. The result will go through common formatting, such as padding if configured.- Specified by:
doApply
in classAbstractLogEntry
- Parameters:
context
- context with access to information useful for access log entries- Returns:
- log entry
- See Also:
AccessLogEntry.NOT_AVAILABLE
-
-