in util/src/main/java/com/google/cloud/healthcare/imaging/dicomadapter/AetDictionary.java [39:51]
public AetDictionary( String jsonInline, String jsonPath) throws IOException {
JSONArray jsonArray = JsonUtil.parseConfig(jsonInline, jsonPath, ENV_AETS_JSON);
if (jsonArray != null) {
for (Object elem : jsonArray) {
JSONObject elemJson = (JSONObject) elem;
String name = elemJson.getString("name");
aetMap.put(name, new Aet(name, elemJson.getString("host"), elemJson.getInt("port")));
}
}
log.info("aetMap = {}", aetMap);
}