All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dropwizard.configuration.UrlConfigurationSourceProvider Maven / Gradle / Ivy

There is a newer version: 0.0.3
Show newest version
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