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