Class UrlConfigSource.Builder

All Implemented Interfaces:
Builder<UrlConfigSource.Builder,UrlConfigSource>, ParsableSource.Builder<UrlConfigSource.Builder>, PollableSource.Builder<UrlConfigSource.Builder>, Source.Builder<UrlConfigSource.Builder>, WatchableSource.Builder<UrlConfigSource.Builder,URL>, Supplier<UrlConfigSource>
Enclosing class:
UrlConfigSource

Url ConfigSource Builder.

It allows to configure following properties:

  • url - configuration endpoint URL;
  • mandatory - is existence of configuration resource mandatory (by default) or is optional?
  • media-type - configuration content media type to be used to look for appropriate ConfigParser;
  • parser - or directly set ConfigParser instance to be used to parse the source;

If media-type not set it uses HTTP response header content-type. If media-type not returned it tries to guess it from url suffix.