summaryrefslogtreecommitdiffstats
path: root/forwarding/src
diff options
context:
space:
mode:
authorJim Hahn <jrh3@att.com>2021-07-19 16:21:25 -0400
committerJim Hahn <jrh3@att.com>2021-07-20 09:37:05 -0400
commitb59b14d47b590ff94b7c98348c1617990d03c86f (patch)
tree2bccdb90eb3ffa96a8840c1666728ac60b007271 /forwarding/src
parent9eba753aed9d5575fa24ab8806e4d614668c75cb (diff)
Use new RestClientParameters class in distribution
Replaced LifecycleApiForwarderParameters with RestClientParameters. Also modified the code to get the HttpClient objects once. This requires changes to property files in CSITs and OOM: - rename "hostName" to "hostname" - rename "isHttps" to "useHttps" and move it inside the api & pap structures Issue-ID: POLICY-3456 Change-Id: I654c32c9b6628263a68d821e11c5a316e8b6e2cc Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'forwarding/src')
-rw-r--r--forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java b/forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java
index 3059f2f0..e4fba0ae 100644
--- a/forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java
+++ b/forwarding/src/main/java/org/onap/policy/distribution/forwarding/PolicyForwarder.java
@@ -1,6 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2018 Ericsson. All rights reserved.
+ * Modifications Copyright (C) 2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,6 +22,7 @@
package org.onap.policy.distribution.forwarding;
import java.util.Collection;
+import org.onap.policy.common.endpoints.http.client.HttpClientConfigException;
import org.onap.policy.models.tosca.authorative.concepts.ToscaEntity;
/**
@@ -40,8 +42,9 @@ public interface PolicyForwarder {
*
* @param parameterGroupName the name of the parameter group which contains the configuration
* for the policy forwarder
+ * @throws HttpClientConfigException if an exception occurs
*/
- void configure(String parameterGroupName);
+ void configure(String parameterGroupName) throws HttpClientConfigException;
/**
* Forward the given policies.