io.dropwizard.configuration.UrlConfigurationSourceProvider Maven / Gradle / Ivy
package io.dropwizard.configuration;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
/**
* An implementation of {@link ConfigurationSourceProvider} that reads the configuration from a
* {@link URL}.
*/
public class UrlConfigurationSourceProvider implements ConfigurationSourceProvider {
@Override
public InputStream open(String path) throws IOException {
return new URL(path).openStream();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy