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>
- 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 ObserverConfigBase.BuilderBase
ObserverConfigBase.BuilderBase.ObserverConfigBaseImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSafeKey(String safeKey) Safe key patterns (regular expressions) to include in output.addSafeKeys(Set<String> safeKeys) Safe key patterns (regular expressions) to include in output.Secret patterns (regular expressions) to exclude from output.addSecrets(Set<String> secrets) Secret patterns (regular expressions) to exclude from output.Clear all safeKeys.Clear all secrets.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.safeKeys()Safe key patterns (regular expressions) to include in output.Safe key patterns (regular expressions) to include in output.secrets()Secret patterns (regular expressions) to exclude from output.Secret patterns (regular expressions) to exclude from output.toString()booleanWhether to include values that do not match configuredsafe-keyspatterns; values whose keys match configuredsecretspatterns are still obfuscated.unsafeValues(boolean unsafeValues) Whether to include values that do not match configuredsafe-keyspatterns; values whose keys match configuredsecretspatterns are still obfuscated.protected voidValidates required properties.Methods inherited from class ObserverConfigBase.BuilderBase
config, enabled, enabled, from, from, name, nameModifier and TypeMethodDescriptionconfig()The config instance used to configure this observer.booleanenabled()Whether this observer is enabled.enabled(boolean enabled) Whether this observer is enabled.from(ObserverConfigBase prototype) Update this builder from an existing prototype instance.from(ObserverConfigBase.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Name of this observer.Name of this observer.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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
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
-
permitAll
Permit all access, even when not authorized.- Parameters:
permitAll- whether to permit access for anybody- Returns:
- updated builder instance
- See Also:
-
clearSecrets
-
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 are matched case-insensitively.Built-in default patterns always added:
.*password.*.*passphrase.*.*pwd.*.*secret.*.*credential.*.*token.*.*api[-_.]?key.*.*access[-_.]?key.*.*private[-_.]?key.*.*connection[-_.]?url.*
- 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 are matched case-insensitively.Built-in default patterns always added:
.*password.*.*passphrase.*.*pwd.*.*secret.*.*credential.*.*token.*.*api[-_.]?key.*.*access[-_.]?key.*.*private[-_.]?key.*.*connection[-_.]?url.*
- 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 are matched case-insensitively.Built-in default patterns always added:
.*password.*.*passphrase.*.*pwd.*.*secret.*.*credential.*.*token.*.*api[-_.]?key.*.*access[-_.]?key.*.*private[-_.]?key.*.*connection[-_.]?url.*
- Parameters:
secret- add single set of regular expression patterns for keys, where values should be excluded from output- Returns:
- updated builder instance
- See Also:
-
clearSafeKeys
-
safeKeys
Safe key patterns (regular expressions) to include in output. Any pattern that matches a key will cause the output to contain the value, unless it also matches asecrets()pattern. Patterns are matched case-insensitively.- Parameters:
safeKeys- set of regular expression patterns for keys, where values can be included in output- Returns:
- updated builder instance
- See Also:
-
addSafeKeys
Safe key patterns (regular expressions) to include in output. Any pattern that matches a key will cause the output to contain the value, unless it also matches asecrets()pattern. Patterns are matched case-insensitively.- Parameters:
safeKeys- set of regular expression patterns for keys, where values can be included in output- Returns:
- updated builder instance
- See Also:
-
addSafeKey
Safe key patterns (regular expressions) to include in output. Any pattern that matches a key will cause the output to contain the value, unless it also matches asecrets()pattern. Patterns are matched case-insensitively.- Parameters:
safeKey- add single set of regular expression patterns for keys, where values can be included in output- Returns:
- updated builder instance
- See Also:
-
unsafeValues
Whether to include values that do not match configuredsafe-keyspatterns; values whose keys match configuredsecretspatterns are still obfuscated. If enabled, the observer uses the previous behavior and only obfuscates values whose keys matchsecrets().- Parameters:
unsafeValues- whether to include unsafe values in output- Returns:
- updated builder instance
- See Also:
-
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 are matched case-insensitively.Built-in default patterns always added:
.*password.*.*passphrase.*.*pwd.*.*secret.*.*credential.*.*token.*.*api[-_.]?key.*.*access[-_.]?key.*.*private[-_.]?key.*.*connection[-_.]?url.*
- Returns:
- set of regular expression patterns for keys, where values should be excluded from output
-
safeKeys
Safe key patterns (regular expressions) to include in output. Any pattern that matches a key will cause the output to contain the value, unless it also matches asecrets()pattern. Patterns are matched case-insensitively.- Returns:
- set of regular expression patterns for keys, where values can be included in output
-
unsafeValues
public boolean unsafeValues()Whether to include values that do not match configuredsafe-keyspatterns; values whose keys match configuredsecretspatterns are still obfuscated. If enabled, the observer uses the previous behavior and only obfuscates values whose keys matchsecrets().- Returns:
- whether to include unsafe values in 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>
-