loadSocialNetwork
public static SNConfiguration loadSocialNetwork(java.lang.String configPath)
throws java.lang.IllegalArgumentException,
java.io.IOException,
com.fasterxml.jackson.databind.JsonMappingException,
com.fasterxml.jackson.core.JsonParseException
Method to load a social network configuration from the respective files
(individual files for at least the networks used, configuration of the concrete network in the network configuration file)
- Parameters:
configPath
- The (relative) path the configuration is located at
- Returns:
- A SNConfiguration object corresponding to the configuration as specified in the configuration files
- Throws:
java.lang.IllegalArgumentException
- Will be thrown when an entry is missing from the configuration or is provided in the wrong format (can't be cast to the desired format) or is thrown loading the configured networks
java.io.IOException
- Is thrown when an error occurs in handling the files the configuration is located in
com.fasterxml.jackson.databind.JsonMappingException
- Will be thrown when an error occurs in mapping the JSON data
com.fasterxml.jackson.core.JsonParseException
- Will be thrown when an error occurs in parsing the json data