Package org.linkeddatafragments.config
Class ConfigReader
- java.lang.Object
-
- org.linkeddatafragments.config.ConfigReader
-
public class ConfigReader extends Object
Reads the configuration of a Linked Data Fragments server.- Author:
- Ruben Verborgh, Olaf Hartig
-
-
Constructor Summary
Constructors Constructor Description ConfigReader(Reader configReader)Creates a new configuration reader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseURL()Gets the base URLMap<String,com.fasterxml.jackson.databind.JsonNode>getDataSources()Gets the data sources.Map<String,IDataSourceType>getDataSourceTypes()Gets the data source types.Map<String,String>getPrefixes()Gets the prefixes.protected IDataSourceTypeinitDataSouceType(String className)Loads a certainIDataSourceTypeclass at runtime
-
-
-
Constructor Detail
-
ConfigReader
public ConfigReader(Reader configReader)
Creates a new configuration reader.- Parameters:
configReader- the configuration
-
-
Method Detail
-
getDataSourceTypes
public Map<String,IDataSourceType> getDataSourceTypes()
Gets the data source types.- Returns:
- a mapping of names of data source types to these types
-
getDataSources
public Map<String,com.fasterxml.jackson.databind.JsonNode> getDataSources()
Gets the data sources.- Returns:
- the data sources
-
getBaseURL
public String getBaseURL()
Gets the base URL- Returns:
- the base URL
-
initDataSouceType
protected IDataSourceType initDataSouceType(String className)
Loads a certainIDataSourceTypeclass at runtime- Parameters:
className- IDataSourceType class- Returns:
- the created IDataSourceType object
-
-