This commit is contained in:
Fabio Sinibaldi 2019-05-20 13:12:03 +00:00
parent 310ea7be51
commit b50eb7a437
1 changed files with 16 additions and 12 deletions

View File

@ -105,6 +105,7 @@ public class ISUtils {
public static Map<String,String> loadConfiguration(){
HashMap<String,String> toReturn=new HashMap<>();
try {
String confXML= ISUtils.queryForGenericResources("gcat-feeder", "configuration").get(0).profile().bodyAsString();
confXML=confXML.replaceAll(" ", "");
@ -118,6 +119,9 @@ public class ISUtils {
System.out.println(child.getTextContent());
toReturn.put(child.getNodeName(), child.getTextContent());
}
}catch(Throwable t) {
log.warn("Unable to load IS configuration",t);
}
return toReturn;
}