Package io.dropwizard.configuration
Class UrlConfigurationSourceProvider
java.lang.Object
io.dropwizard.configuration.UrlConfigurationSourceProvider
- All Implemented Interfaces:
ConfigurationSourceProvider
An implementation of
ConfigurationSourceProvider
that reads the configuration from a
URL
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns anInputStream
that contains the source of the configuration for the application.
-
Constructor Details
-
UrlConfigurationSourceProvider
public UrlConfigurationSourceProvider()
-
-
Method Details
-
open
Description copied from interface:ConfigurationSourceProvider
Returns anInputStream
that contains the source of the configuration for the application. The caller is responsible for closing the result.- Specified by:
open
in interfaceConfigurationSourceProvider
- Parameters:
path
- the path to the configuration- Returns:
- an
InputStream
- Throws:
IOException
- if there is an error reading the data atpath
-