public class URLSource<T> extends AbstractSource<T> implements Source<T>
The syntax of a URL is defined by RFC-2396 (Uniform Resource Identifiers: Generic Syntax), and amended by RFC-2732 (Format for Literal IPv6 Addresses in URLs).
Examples of valid URLs:
file:///etc/fstab (local host)file://ftp.server.com/pub/files/foo.xmlhttp://www.server.com:1080/myservice/config.jsonhttp://192.168.0.10:1080/config?field1=value1&field2=value2| Constructor and Description |
|---|
URLSource(String string)
Builds a new configuration source for a specific URL.
|
| Modifier and Type | Method and Description |
|---|---|
T |
load(Mapper<T> mapper)
Applies a specific configuration loading strategy and returns a mapped bean containing
the retrieved data, throwing an exception if the operation fails.
|
equals, hashCode, load, toStringpublic URLSource(String string)
string - the string to parse as URL for this configuration sourceConfigurationSourceException - if the specified URL can not be parsedCopyright © 2023. All rights reserved.