summaryrefslogtreecommitdiffstats
path: root/controlloop/common/model-impl/so
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2018-01-15 19:02:19 +0000
committerGerrit Code Review <gerrit@onap.org>2018-01-15 19:02:19 +0000
commit8135425f1eb826dd50910d60b421a788f41d9b38 (patch)
tree71503a1f963f26370beb5d88ed16db841a42b303 /controlloop/common/model-impl/so
parent46f739920af1428ac8f47cafb00e5b003bdfea9c (diff)
parentfe4cd8e4c08a19ac543ca93c577b8b3a12a1524f (diff)
Merge "Cleanup of A&AI message model module."
Diffstat (limited to 'controlloop/common/model-impl/so')
-rw-r--r--controlloop/common/model-impl/so/src/main/java/org/onap/policy/so/SOManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/controlloop/common/model-impl/so/src/main/java/org/onap/policy/so/SOManager.java b/controlloop/common/model-impl/so/src/main/java/org/onap/policy/so/SOManager.java
index 4ac98054f..e4d8af883 100644
--- a/controlloop/common/model-impl/so/src/main/java/org/onap/policy/so/SOManager.java
+++ b/controlloop/common/model-impl/so/src/main/java/org/onap/policy/so/SOManager.java
@@ -61,7 +61,7 @@ public final class SOManager {
//
String requestJson = Serialization.gsonPretty.toJson(request);
netLogger.info("[OUT|{}|{}|]{}{}", "SO", url, System.lineSeparator(), requestJson);
- Pair<Integer, String> httpDetails = RESTManager.post(url, username, password, headers, "application/json", requestJson);
+ Pair<Integer, String> httpDetails = new RESTManager().post(url, username, password, headers, "application/json", requestJson);
if (httpDetails == null) {
return null;
@@ -84,7 +84,7 @@ public final class SOManager {
while(attemptsLeft-- > 0){
- Pair<Integer, String> httpDetailsGet = RESTManager.get(urlGet, username, password, headers);
+ Pair<Integer, String> httpDetailsGet = new RESTManager().get(urlGet, username, password, headers);
responseGet = Serialization.gsonPretty.fromJson(httpDetailsGet.b, SOResponse.class);
netLogger.info("[IN|{}|{}|]{}{}", "SO", urlGet, System.lineSeparator(), httpDetailsGet.b);
@@ -163,7 +163,7 @@ public final class SOManager {
SOResponse so = new SOResponse();
netLogger.info("[OUT|{}|{}|]{}{}", "SO", url, System.lineSeparator(), soJson);
- Pair<Integer, String> httpResponse = RESTManager.post(url, "policy", "policy", headers, "application/json", soJson);
+ Pair<Integer, String> httpResponse = new RESTManager().post(url, "policy", "policy", headers, "application/json", soJson);
if (httpResponse != null ) {
if (httpResponse.b != null && httpResponse.a != null) {