Class AccessLogConfig.Builder
java.lang.Object
io.helidon.webserver.accesslog.AccessLogConfig.BuilderBase<AccessLogConfig.Builder, AccessLogConfig>
io.helidon.webserver.accesslog.AccessLogConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<AccessLogConfig.Builder, AccessLogConfig>, Builder<AccessLogConfig.Builder, AccessLogFeature>, ConfigBuilderSupport.ConfiguredBuilder<AccessLogConfig.Builder, AccessLogConfig>, Supplier<AccessLogFeature>
- Enclosing interface:
AccessLogConfig
public static class AccessLogConfig.Builder
extends AccessLogConfig.BuilderBase<AccessLogConfig.Builder, AccessLogConfig>
implements Builder<AccessLogConfig.Builder, AccessLogFeature>
Fluent API builder for
AccessLogFeature.-
Nested Class Summary
Nested classes/interfaces inherited from class AccessLogConfig.BuilderBase
AccessLogConfig.BuilderBase.AccessLogConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class AccessLogConfig.BuilderBase
addEntries, addEntry, addSockets, clearEntries, clearFormat, clearSockets, clock, clock, commonLogFormat, config, config, defaultLogFormat, enabled, enabled, entries, entries, format, format, from, from, loggerName, loggerName, name, name, preBuildPrototype, sockets, sockets, toString, validatePrototype, weight, weightModifier and TypeMethodDescriptionaddEntries(List<? extends AccessLogEntry> entries) Configured log entries.addEntry(AccessLogEntry entry) Configured log entries.addSockets(Set<String> sockets) List of sockets to register this feature on.Clear all entries.Clear existing value of format.Clear all sockets.clock()Configure an alternative clock to use, such asClock.fixed(java.time.Instant, java.time.ZoneId).Configure an alternative clock to use, such asClock.fixed(java.time.Instant, java.time.ZoneId).Usecommonlog format.config()Configuration used to configure this instance.Update builder from configuration (node of this type).Use default log format.booleanenabled()Whether this feature will be enabled.enabled(boolean enabled) Whether this feature will be enabled.entries()Configured log entries.entries(List<? extends AccessLogEntry> entries) Configured log entries.format()The format for log entries (similar to the ApacheLogFormat).The format for log entries (similar to the ApacheLogFormat).from(AccessLogConfig prototype) Update this builder from an existing prototype instance.from(AccessLogConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Name of the logger used to obtain access log logger fromSystem.getLogger(String).loggerName(String loggerName) Name of the logger used to obtain access log logger fromSystem.getLogger(String).name()Name of this instance.Name of this instance.protected voidHandles providers and decorators.sockets()List of sockets to register this feature on.List of sockets to register this feature on.toString()protected voidValidates required properties.doubleweight()Weight of the access log feature.weight(double weight) Weight of the access log feature.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault AccessLogFeatureget()default AccessLogConfig.Builderidentity()Instance of this builder as the correct type.default AccessLogConfig.Builderupdate(Consumer<AccessLogConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault AccessLogConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<AccessLogConfig.Builder, AccessLogConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<AccessLogConfig.Builder, AccessLogFeature>- Returns:
- instance of the built type
-