for (int i = 0; i < list.getLength(); i++) {
result.add(list.item(i).getAttributes().getNamedItem("name").getNodeValue());
}
- } catch (ParserConfigurationException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (SAXException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ } catch (ParserConfigurationException | SAXException | IOException e) {
+ LOGGER.error(e.getMessage());
}
result.remove("EdgePropNames");
this.set(convertedName, clazz.newInstance());
result = this.get(convertedName);
} catch (DynamicException | InstantiationException | IllegalAccessException e) {
-
+ LOGGER.warn(e.getMessage(),e);
}
}
this.set(convertedName, clazz.newInstance());
value = this.get(convertedName);
} catch (DynamicException | InstantiationException | IllegalAccessException e) {
-
+ LOGGER.warn(e.getMessage(),e);
}
}
if (value != null) {
this.set(convertedName, clazz.newInstance());
value = this.get(convertedName);
} catch (DynamicException | InstantiationException | IllegalAccessException e) {
-
+ LOGGER.warn(e.getMessage(),e);
}
}
*/
package org.onap.aai.introspection;
+import com.att.eelf.configuration.EELFLogger;
+import com.att.eelf.configuration.EELFManager;
import org.json.simple.JSONObject;
import org.onap.aai.schema.enums.ObjectMetadata;
import org.onap.aai.schema.enums.PropertyMetadata;
import java.util.UUID;
public class JSONStrategy extends Introspector {
+ private static final EELFLogger LOGGER = EELFManager.getInstance().getLogger(JSONStrategy.class);
private JSONObject json = null;
private String namedType = "";
try {
return this.getClass(name).newInstance();
} catch (InstantiationException | IllegalAccessException e) {
+ LOGGER.error(e.getMessage(),e);
return null;
}
}
try {
return this.getGenericTypeClass(name).newInstance();
} catch (InstantiationException | IllegalAccessException e) {
+ LOGGER.error(e.getMessage(),e);
return null;
}
}
char[] pwd = keystore_password.toCharArray();
ks.load(fin, pwd);
kmf.init(ks, pwd);
+ ctx.init(kmf.getKeyManagers(), null, null);
} catch (Exception e) {
System.out.println("Error setting up kmf: exiting");
e.printStackTrace();
System.exit(1);
}
- ctx.init(kmf.getKeyManagers(), null, null);
config.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES,
new HTTPSProperties( new HostnameVerifier() {
@Override