diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-01-15 19:02:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-01-15 19:02:19 +0000 |
commit | 8135425f1eb826dd50910d60b421a788f41d9b38 (patch) | |
tree | 71503a1f963f26370beb5d88ed16db841a42b303 /controlloop/common/model-impl/vfc/src | |
parent | 46f739920af1428ac8f47cafb00e5b003bdfea9c (diff) | |
parent | fe4cd8e4c08a19ac543ca93c577b8b3a12a1524f (diff) |
Merge "Cleanup of A&AI message model module."
Diffstat (limited to 'controlloop/common/model-impl/vfc/src')
-rw-r--r-- | controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java index ebc3ad6cb..c951984bd 100644 --- a/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java +++ b/controlloop/common/model-impl/vfc/src/main/java/org/onap/policy/vfc/VFCManager.java @@ -78,7 +78,7 @@ public final class VFCManager implements Runnable { String vfcRequestJson = Serialization.gsonPretty.toJson(vfcRequest); netLogger.info("[OUT|{}|{}|]{}{}", "VFC", vfcUrl, System.lineSeparator(), vfcRequestJson); - httpDetails = RESTManager.post(vfcUrl, username, password, headers, + httpDetails = new RESTManager().post(vfcUrl, username, password, headers, "application/json", vfcRequestJson); } catch (Exception e) { logger.error(e.getMessage(), e); @@ -108,7 +108,7 @@ public final class VFCManager implements Runnable { while (attemptsLeft-- > 0) { netLogger.info("[OUT|{}|{}|]", "VFC", urlGet); - 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, VFCResponse.class); netLogger.info("[IN|{}|{}|]{}{}", "VFC", urlGet, System.lineSeparator(), httpDetailsGet.b); responseGet.requestId = vfcRequest.requestId.toString(); |