Module org.github.gestalt.core
Package org.github.gestalt.config.source
Class URLConfigSourceBuilder
- java.lang.Object
-
- org.github.gestalt.config.builder.SourceBuilder<URLConfigSourceBuilder,URLConfigSource>
-
- org.github.gestalt.config.source.URLConfigSourceBuilder
-
public final class URLConfigSourceBuilder extends SourceBuilder<URLConfigSourceBuilder,URLConfigSource>
ConfigSourceBuilder for the URL Config Source.Create a URLConfigSource to load a config from a URL.
-
-
Field Summary
-
Fields inherited from class org.github.gestalt.config.builder.SourceBuilder
configReloadStrategies, source, tags
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigSourcePackagebuild()Build the ConfigSourcePackage with the config source, tags and any reload strategies.static URLConfigSourceBuilderbuilder()Static function to create the builder.java.lang.StringgetSourceURL()Get the URL to find the config source at.URLConfigSourceBuildersetSourceURL(java.lang.String sourceURL)Set the URL to find the config source at.-
Methods inherited from class org.github.gestalt.config.builder.SourceBuilder
addConfigReloadStrategy, addTag, buildPackage, getConfigReloadStrategies, getTags, self, setTags
-
-
-
-
Method Detail
-
builder
public static URLConfigSourceBuilder builder()
Static function to create the builder.- Returns:
- the builder
-
getSourceURL
public java.lang.String getSourceURL()
Get the URL to find the config source at.- Returns:
- the URL to find the config source at.
-
setSourceURL
public URLConfigSourceBuilder setSourceURL(java.lang.String sourceURL)
Set the URL to find the config source at.- Parameters:
sourceURL- the URL to find the config source at.- Returns:
- the builder
-
build
public ConfigSourcePackage build() throws GestaltException
Description copied from class:SourceBuilderBuild the ConfigSourcePackage with the config source, tags and any reload strategies.- Specified by:
buildin classSourceBuilder<URLConfigSourceBuilder,URLConfigSource>- Returns:
- the ConfigSourcePackage with the config source, tags and any reload strategies.
- Throws:
GestaltException- exceptions if any of the required properties are not set.
-
-