Package io.helidon.webserver.observe.log
Class LogObserverConfig.BuilderBase<BUILDER extends LogObserverConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends LogObserverConfig>
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.webserver.observe.log.LogObserverConfig.BuilderBase<BUILDER,PROTOTYPE>
- Type Parameters:
BUILDER
- type of the builder extending this abstract builderPROTOTYPE
- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER,
,PROTOTYPE> Prototype.ConfiguredBuilder<BUILDER,
PROTOTYPE>
- Direct Known Subclasses:
LogObserverConfig.Builder
- Enclosing interface:
LogObserverConfig
public abstract static class LogObserverConfig.BuilderBase<BUILDER extends LogObserverConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends LogObserverConfig>
extends ObserverConfigBase.BuilderBase<BUILDER,PROTOTYPE>
implements Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
LogObserver
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class io.helidon.webserver.observe.ObserverConfigBase.BuilderBase
ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconfig()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).endpoint()
from
(LogObserverConfig prototype) Update this builder from an existing prototype instance.from
(LogObserverConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.boolean
Permit all access, even when not authorized.permitAll
(boolean permitAll) Permit all access, even when not authorized.protected void
Handles providers and decorators.stream()
Configuration of log stream.stream
(LogStreamConfig stream) Configuration of log stream.stream
(Consumer<LogStreamConfig.Builder> consumer) Configuration of log stream.stream
(Supplier<? extends LogStreamConfig> supplier) Configuration of log stream.toString()
protected void
Validates required properties.Methods inherited from class io.helidon.webserver.observe.ObserverConfigBase.BuilderBase
enabled, enabled, from, from, name, name
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
Methods inherited from interface io.helidon.builder.api.Prototype.ConfiguredBuilder
discoverService, discoverServices
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype
- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder
- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
config
in interfacePrototype.ConfiguredBuilder<BUILDER extends LogObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LogObserverConfig> - Overrides:
config
in classObserverConfigBase.BuilderBase<BUILDER extends LogObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LogObserverConfig> - Parameters:
config
- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
endpoint
- Parameters:
endpoint
-- Returns:
- updated builder instance
- See Also:
-
permitAll
Permit all access, even when not authorized.- Parameters:
permitAll
- whether to permit access for anybody- Returns:
- updated builder instance
- See Also:
-
stream
Configuration of log stream.- Parameters:
stream
- log stream configuration- Returns:
- updated builder instance
- See Also:
-
stream
Configuration of log stream.- Parameters:
consumer
- consumer of builder for log stream configuration- Returns:
- updated builder instance
- See Also:
-
stream
Configuration of log stream.- Parameters:
supplier
- supplier of log stream configuration- Returns:
- updated builder instance
- See Also:
-
endpoint
- Returns:
- the endpoint
-
permitAll
public boolean permitAll()Permit all access, even when not authorized.- Returns:
- the permit all
-
stream
Configuration of log stream.- Returns:
- the stream
-
config
If this instance was configured, this would be the config instance used.- Overrides:
config
in classObserverConfigBase.BuilderBase<BUILDER extends LogObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LogObserverConfig> - Returns:
- config node used to configure this builder, or empty if not configured
-
toString
- Overrides:
toString
in classObserverConfigBase.BuilderBase<BUILDER extends LogObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LogObserverConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototype
in classObserverConfigBase.BuilderBase<BUILDER extends LogObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LogObserverConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototype
in classObserverConfigBase.BuilderBase<BUILDER extends LogObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LogObserverConfig>
-