Bug-8187: call home throwing exception on startup
[netconf.git] / netconf / callhome-provider / src / main / java / org / opendaylight / netconf / callhome / mount / Configuration.java
index f115b86b6a1a6435a80ed5ed50ea436529e91d75..bc00292a682764d1e876e37ab7ac381486ecffbf 100644 (file)
@@ -66,6 +66,11 @@ public class Configuration {
     private String path;
     private Properties properties;
 
+    public Configuration() {
+        path = "<no-path>";
+        properties = new Properties();
+    }
+
     public Configuration(String path) throws ConfigurationException {
         this.path = path;
         try {
@@ -91,7 +96,11 @@ public class Configuration {
         return properties;
     }
 
-    public String get(String key) {
+    public void set(String key, String value) {
+        properties.setProperty(key, value);
+    }
+
+    String get(String key) {
         String result = (String) properties.get(key);
         if (result == null)
             throw new MissingException(key);