import org.oransc.policyagent.exceptions.ServiceException;
-class ApplicationConfigParser {
+public class ApplicationConfigParser {
private static final String CONFIG = "config";
private static Gson gson = new GsonBuilder() //
return elem;
}
- private static String getAsString(JsonObject obj, String memberName) throws ServiceException {
- return get(obj, memberName).getAsString();
- }
-
- private static JsonObject getAsJson(JsonObject obj, String memberName) throws ServiceException {
- return get(obj, memberName).getAsJsonObject();
- }
-
private JsonArray getAsJsonArray(JsonObject obj, String memberName) throws ServiceException {
return get(obj, memberName).getAsJsonArray();
}