summaryrefslogtreecommitdiffstats
path: root/plugins/forwarding-plugins/src/main
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@est.tech>2019-01-25 15:26:52 +0000
committerramverma <ram.krishna.verma@est.tech>2019-01-25 15:26:52 +0000
commit9255568baf91af0065a5fea1963d19ecfcf90f7a (patch)
treeb24b16bee676cd9140ad253a3a59619705a8db37 /plugins/forwarding-plugins/src/main
parent1936220d00ee644774e58ab33de39cca4a006d2a (diff)
Fix compilation error on policy-distribution
Change-Id: Ic190774c74c11a2d11c3b3b7e0144f69cd8770e8 Issue-ID: POLICY-1428 Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'plugins/forwarding-plugins/src/main')
-rw-r--r--plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/xacml/pdp/XacmlPdpPolicyForwarder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/xacml/pdp/XacmlPdpPolicyForwarder.java b/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/xacml/pdp/XacmlPdpPolicyForwarder.java
index 30d8f3ae..972e5abe 100644
--- a/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/xacml/pdp/XacmlPdpPolicyForwarder.java
+++ b/plugins/forwarding-plugins/src/main/java/org/onap/policy/distribution/forwarding/xacml/pdp/XacmlPdpPolicyForwarder.java
@@ -107,7 +107,7 @@ public class XacmlPdpPolicyForwarder implements PolicyForwarder {
+ response.getStatus() + ", Response status info: " + response.getStatusInfo());
return false;
}
- } catch (KeyManagementException | NoSuchAlgorithmException exception) {
+ } catch (KeyManagementException | NoSuchAlgorithmException | ClassNotFoundException exception) {
LOGGER.error("Invocation of method " + method + " failed for policy " + policyName
+ " due to error opening Http client", exception);
return false;
@@ -115,7 +115,8 @@ public class XacmlPdpPolicyForwarder implements PolicyForwarder {
return true;
}
- private HttpClient getHttpClient() throws KeyManagementException, NoSuchAlgorithmException {
+ private HttpClient getHttpClient()
+ throws KeyManagementException, NoSuchAlgorithmException, ClassNotFoundException {
boolean useHttps = configurationParameters.isUseHttps();
String hostname = configurationParameters.getHostname();
int port = configurationParameters.getPort();