From b59b14d47b590ff94b7c98348c1617990d03c86f Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Mon, 19 Jul 2021 16:21:25 -0400 Subject: 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 --- .../org/onap/policy/distribution/reception/handling/PluginHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'reception/src') diff --git a/reception/src/main/java/org/onap/policy/distribution/reception/handling/PluginHandler.java b/reception/src/main/java/org/onap/policy/distribution/reception/handling/PluginHandler.java index c2ea8009..ecd40e92 100644 --- a/reception/src/main/java/org/onap/policy/distribution/reception/handling/PluginHandler.java +++ b/reception/src/main/java/org/onap/policy/distribution/reception/handling/PluginHandler.java @@ -26,6 +26,7 @@ import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import java.util.Collection; import java.util.Map; +import org.onap.policy.common.endpoints.http.client.HttpClientConfigException; import org.onap.policy.common.parameters.ParameterService; import org.onap.policy.distribution.forwarding.PolicyForwarder; import org.onap.policy.distribution.forwarding.parameters.PolicyForwarderParameters; @@ -120,7 +121,7 @@ public class PluginHandler { policyForwarders.add(policyForwarder); } catch (final ClassNotFoundException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException - | SecurityException exp) { + | SecurityException | HttpClientConfigException exp) { throw new PluginInitializationException(exp.getMessage(), exp.getCause()); } } -- cgit 1.2.3-korg