Add params and headers

This commit is contained in:
Alexis Delhaie
2020-10-25 21:50:45 +01:00
parent 78fb958c22
commit 679fff5e63
20 changed files with 720 additions and 120 deletions

View File

@@ -52,6 +52,13 @@ public class ConfigurationProperties {
return defaultB;
}
public int getIntegerProperty(String key, int defaultI) {
if (properties.containsKey(key)) {
return Integer.parseInt(properties.get(key));
}
return defaultI;
}
private void save() {
try {
mapper.writeValue(new File(filepath), properties);