Interface ConfigObserverConfig
- All Superinterfaces:
ObserverConfigBase,Prototype.Api,Prototype.Factory<ConfigObserver>
- All Known Implementing Classes:
ConfigObserverConfig.BuilderBase.ConfigObserverConfigImpl
Configuration of Config Observer.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forConfigObserver.static classConfigObserverConfig.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig> Fluent API builder base forConfigObserverConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigObserverConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static ConfigObserverConfig.Builderbuilder(ConfigObserverConfig instance) Create a new fluent API builder from an existing instance.static ConfigObserverConfigcreate()Create a new instance with default values.static ConfigObserverConfigDeprecated.static ConfigObserverConfigCreate a new instance from configuration.endpoint()Endpoint this observer is available on.name()Name of this observer.booleanPermit all access, even when not authorized.safeKeys()Safe key patterns (regular expressions) to include in output.secrets()Secret patterns (regular expressions) to exclude from output.default booleanWhether to include values that do not match configuredsafe-keyspatterns; values whose keys match configuredsecretspatterns are still obfuscated.Methods inherited from interface io.helidon.webserver.observe.ObserverConfigBase
config, enabledMethods inherited from interface io.helidon.builder.api.Prototype.Factory
build
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
endpoint
String endpoint()Endpoint this observer is available on.- Returns:
- the observer endpoint
-
permitAll
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.Patterns always added:
.*password.*passphrase.*secret
- 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
default 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
-
name
String name()Description copied from interface:ObserverConfigBaseName of this observer. Each observer should provide its own default for this property.- Specified by:
namein interfaceObserverConfigBase- Returns:
- observer name
-
create(io.helidon.config.Config)