- All Implemented Interfaces:
- Enclosing class:
It allows to configure following properties:
url- configuration endpoint URL;
mandatory- is existence of configuration resource mandatory (by default) or is
media-type- configuration content media type to be used to look for appropriate
parser- or directly set
ConfigParserinstance to be used to parse the source;
media-type not set it uses HTTP response header
media-type not returned it tries to guess it from url suffix.
Method SummaryModifier and TypeMethodDescription
build()Builds new instance of Url ConfigSource.Configure a change watcher.Configure builder from meta configuration.Configure a polling strategy.Configure the URL that is source of this overrides.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildpublic UrlOverrideSource build()Builds new instance of Url ConfigSource.
media-typenot set it tries to use
content-typeresponse header or guesses it from file extension.
configConfigure builder from meta configuration.
The following configuration options are supported:
Optional configuration parameters key default value description optional
trueif this source should not fail configuration setup when underlying data is missing.
polling-strategy No polling strategy is added by default Meta configuration of a polling strategy to be used with this source, add configuration to
change-watcher No change watcher is added by default Meta configuration of a change watcher to be used with this source, add configuration to
retry-policy No retry policy is added by default Meta configuration of a retry policy to be used to load this source, add configuration to
urlConfigure the URL that is source of this overrides.
url- url of the resource to load
- updated builder instance
changeWatcherConfigure a change watcher. This method must be exposed by builders of sources that change watching (
WatchableSource). The type of the change watcher must match the type of the target of this source.
pollingStrategyConfigure a polling strategy. This method must be exposed by builders of sources that support polling. If you see this method as being protected in your builder, the source has removed support for polling, such as