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> ConfigBuilderSupport.ConfiguredBuilder<BUILDER,,PROTOTYPE> ConfigBuilderSupport.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 ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for
ConfigObserverConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSecret patterns (regular expressions) to exclude from output.addSecrets(Set<String> secrets) Secret patterns (regular expressions) to exclude from output.Clear all secrets.Deprecated.Update builder from configuration (node of this type).endpoint()Endpoint this observer is available on.Endpoint this observer is available on.from(ConfigObserverConfig prototype) Update this builder from an existing prototype instance.from(ConfigObserverConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.booleanPermit all access, even when not authorized.permitAll(boolean permitAll) Permit all access, even when not authorized.protected voidHandles providers and decorators.secrets()Secret patterns (regular expressions) to exclude from output.Secret patterns (regular expressions) to exclude from output.toString()protected voidValidates required properties.Methods inherited from class io.helidon.webserver.observe.ObserverConfigBase.BuilderBase
config, enabled, enabled, from, from, name, nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
-
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
Deprecated.Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig> - Overrides:
configin 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
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig> - Overrides:
configin 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
Endpoint this observer is available on.- Parameters:
endpoint- the observer 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:
-
clearSecrets
Clear all secrets.- 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- add single set of regular expression patterns for keys, where values should be excluded from output- Returns:
- updated builder instance
- See Also:
-
endpoint
Endpoint this observer is available on.- Returns:
- the observer endpoint
-
permitAll
public boolean permitAll()Permit all access, even when not authorized.- Returns:
- whether to permit access for anybody
-
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:
- set of regular expression patterns for keys, where values should be excluded from output
-
toString
- Overrides:
toStringin classObserverConfigBase.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig>
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators.- Overrides:
preBuildPrototypein classObserverConfigBase.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig>
-
validatePrototype
protected void validatePrototype()Validates required properties.- Overrides:
validatePrototypein classObserverConfigBase.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig>
-
config(io.helidon.config.Config)