diff options
author | Jim Hahn <jrh3@att.com> | 2021-07-19 16:21:25 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2021-07-30 09:59:53 -0400 |
commit | 1b21a87140899dd453d2f8766dd1aa98aec6ce14 (patch) | |
tree | 995df7175f51668f2f2173c2f5901dd93bb7fad3 /reception/src/main/java/org | |
parent | 9eba753aed9d5575fa24ab8806e4d614668c75cb (diff) |
Use new RestClientParameters class in distribution
This is a re-do of a previously reverted review. It's mostly the same
as before, but there are some minor differences.
Replaced LifecycleApiForwarderParameters with RestClientParameters.
Also modified the code to get the HttpClient objects once.
Also removed some unused json test files.
This requires changes to property files in CSITs and OOM:
- add "clientName" to the api & pap structures
- rename "hostName" to "hostname"
- rename "isHttps" to "useHttps" and move it inside the api & pap
structures
Issue-ID: POLICY-3456
Change-Id: I32b04bc3b6880ec7798814dad268143bc3b06faf
Signed-off-by: Jim Hahn <jrh3@att.com>
Diffstat (limited to 'reception/src/main/java/org')
-rw-r--r-- | reception/src/main/java/org/onap/policy/distribution/reception/handling/PluginHandler.java | 3 |
1 files changed, 2 insertions, 1 deletions
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()); } } |