- java.lang.Object
-
- io.helidon.webserver.accesslog.UserIdLogEntry
-
- All Implemented Interfaces:
AccessLogEntry
,Handler
,BiConsumer<ServerRequest,ServerResponse>
public final class UserIdLogEntry extends Object implements AccessLogEntry
Access log entry for user id. This always returns "-".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.webserver.Handler
Handler.EntityHandler<T>
-
-
Field Summary
-
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 String
apply(AccessLogContext context)
This method is called once the response is fully processed.static UserIdLogEntry
create()
Create a new access log entry for user id.-
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 UserIdLogEntry create()
Create a new access log entry for user id.- Returns:
- an entry that always considers user id to be undefined
- See Also:
AccessLogSupport.Builder.add(AccessLogEntry)
,UserLogEntry
-
apply
public String apply(AccessLogContext context)
Description copied from interface:AccessLogEntry
This method is called once the response is fully processed. TheAccessLogContext.serverResponse()
will return a completed response.- Specified by:
apply
in interfaceAccessLogEntry
- Parameters:
context
- context with access to information useful for access log entries- Returns:
- string representation of a log entry (such as a formatted date time, response time etc.)
-
-