public class ConfigReader extends Object
| Constructor and Description |
|---|
ConfigReader() |
| Modifier and Type | Method and Description |
|---|---|
static List |
getAPIConfig(File configFile)
API Config
[ {apiProduct1}, {apiProduct2}, {apiProduct3} ]
|
static Set<String> |
getAPIList(String apiConfigDir)
List of APIs under configDir/api
|
static List |
getEnvConfig(String env,
File configFile)
Example Hierarchy
envConfig.cache.
|
static List |
getOrgConfig(File configFile)
Example Hierarchy
orgConfig.apiProducts
Returns List of
[ {apiProduct1}, {apiProduct2}, {apiProduct3} ]
|
static Map<String,List<String>> |
getOrgConfigWithId(File configFile)
Example Hierarchy
orgConfig.developerApps.
|
public static List getEnvConfig(String env, File configFile) throws org.json.simple.parser.ParseException, IOException
org.json.simple.parser.ParseExceptionIOExceptionpublic static List getOrgConfig(File configFile) throws org.json.simple.parser.ParseException, IOException
org.json.simple.parser.ParseExceptionIOExceptionpublic static Map<String,List<String>> getOrgConfigWithId(File configFile) throws org.json.simple.parser.ParseException, IOException
org.json.simple.parser.ParseExceptionIOExceptionpublic static Set<String> getAPIList(String apiConfigDir) throws org.json.simple.parser.ParseException, IOException
org.json.simple.parser.ParseExceptionIOExceptionpublic static List getAPIConfig(File configFile) throws org.json.simple.parser.ParseException, IOException
org.json.simple.parser.ParseExceptionIOExceptionCopyright © 2022. All rights reserved.