Class ConfigObserverConfig.BuilderBase.ConfigObserverConfigImpl

java.lang.Object
io.helidon.webserver.observe.ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
io.helidon.webserver.observe.config.ConfigObserverConfig.BuilderBase.ConfigObserverConfigImpl
All Implemented Interfaces:
Prototype.Api, Prototype.Factory<ConfigObserver>, ConfigObserverConfig, ObserverConfigBase, Supplier<ConfigObserver>
Enclosing class:
ConfigObserverConfig.BuilderBase<BUILDER extends ConfigObserverConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends ConfigObserverConfig>

protected static class ConfigObserverConfig.BuilderBase.ConfigObserverConfigImpl extends ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl implements ConfigObserverConfig, Supplier<ConfigObserver>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • ConfigObserverConfigImpl

      protected ConfigObserverConfigImpl(ConfigObserverConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • build

      public ConfigObserver build()
      Create a new runtime instance from this prototype.
      Specified by:
      build in interface Prototype.Factory<ConfigObserver>
      Returns:
      new configured runtime instance
    • get

      public ConfigObserver get()
      Specified by:
      get in interface Supplier<ConfigObserver>
    • endpoint

      public String endpoint()
      Description copied from interface: ConfigObserverConfig
      Endpoint this observer is available on.
      Specified by:
      endpoint in interface ConfigObserverConfig
      Returns:
      the observer endpoint
    • permitAll

      public boolean permitAll()
      Description copied from interface: ConfigObserverConfig
      Permit all access, even when not authorized.
      Specified by:
      permitAll in interface ConfigObserverConfig
      Returns:
      whether to permit access for anybody
    • secrets

      public Set<String> secrets()
      Description copied from interface: ConfigObserverConfig
      Secret patterns (regular expressions) matched against unescaped configuration keys 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.*
      Specified by:
      secrets in interface ConfigObserverConfig
      Returns:
      set of regular expression patterns for keys, where values should be excluded from output
    • safeKeys

      public Set<String> safeKeys()
      Description copied from interface: ConfigObserverConfig
      Safe key patterns (regular expressions) matched against escaped configuration keys to include in output, with dots within node names represented as ~1. Any pattern that matches a key will cause the output to contain the value, unless it also matches a ConfigObserverConfig.secrets() pattern. Patterns are matched case-insensitively against the escaped configuration key, preserving the distinction between path separators and dots within a node name. For example, server[.]host matches the host child of server, while server~1host matches a single node named server.host.
      Specified by:
      safeKeys in interface ConfigObserverConfig
      Returns:
      set of regular expression patterns for keys, where values can be included in output
    • unsafeValues

      public boolean unsafeValues()
      Description copied from interface: ConfigObserverConfig
      Whether to include values that do not match configured safe-keys patterns; values whose keys match configured secrets patterns are still obfuscated. If enabled, the observer uses the previous behavior and only obfuscates values whose keys match ConfigObserverConfig.secrets().
      Specified by:
      unsafeValues in interface ConfigObserverConfig
      Returns:
      whether to include unsafe values in output
    • toString

      public String toString()
      Overrides:
      toString in class ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class ObserverConfigBase.BuilderBase.ObserverConfigBaseImpl
    • name

      String name()
      Description copied from interface: ObserverConfigBase
      Name of this observer. Each observer should provide its own default for this property.
      Specified by:
      name in interface ObserverConfigBase
      Returns:
      observer name