Class ConfigObserverConfig.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ConfigObserverConfig>
java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase<BUILDER,PROTOTYPE>
io.helidon.webserver.observe.config.ConfigObserverConfig.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:
ConfigObserverConfig.Builder
- Enclosing interface:
ConfigObserverConfig
public abstract static class ConfigObserverConfig.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends ConfigObserverConfig>
extends ObserverConfigBase.BuilderBase<BUILDER,PROTOTYPE>
implements Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
ConfigObserver
.-
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 TypeMethodDescriptionSecret patterns (regular expressions) to exclude from output.addSecrets
(Set<? extends String> secrets) Secret patterns (regular expressions) to exclude from output.config()
If this instance was configured, this would be the config instance used.Update builder from configuration (node of this type).endpoint()
from
(ConfigObserverConfig prototype) Update this builder from an existing prototype instance.from
(ConfigObserverConfig.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.secrets()
Secret patterns (regular expressions) to exclude from output.Secret patterns (regular expressions) to exclude from output.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 ConfigObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig> - Overrides:
config
in classObserverConfigBase.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig> - 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:
-
secrets
Secret patterns (regular expressions) to exclude from output. Any pattern that matches a key will cause the output to be obfuscated and not contain the value.Patterns always added:
.*password
.*passphrase
.*secret
- Parameters:
secrets
- set of regular expression patterns for keys, where values should be excluded from output- Returns:
- updated builder instance
- See Also:
-
addSecrets
Secret patterns (regular expressions) to exclude from output. Any pattern that matches a key will cause the output to be obfuscated and not contain the value.Patterns always added:
.*password
.*passphrase
.*secret
- Parameters:
secrets
- set of regular expression patterns for keys, where values should be excluded from output- Returns:
- updated builder instance
- See Also:
-
addSecret
Secret patterns (regular expressions) to exclude from output. Any pattern that matches a key will cause the output to be obfuscated and not contain the value.Patterns always added:
.*password
.*passphrase
.*secret
- Parameters:
secret
- set of regular expression patterns for keys, where values should be excluded from output- 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
-
secrets
Secret patterns (regular expressions) to exclude from output. Any pattern that matches a key will cause the output to be obfuscated and not contain the value.Patterns always added:
.*password
.*passphrase
.*secret
- Returns:
- the secrets
-
config
If this instance was configured, this would be the config instance used.- Overrides:
config
in classObserverConfigBase.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig> - Returns:
- config node used to configure this builder, or empty if not configured
-
toString
- Overrides:
toString
in classObserverConfigBase.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototype
in classObserverConfigBase.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototype
in classObserverConfigBase.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig>
-