From 48960e6033145667366bbcd2f8ad1ae44c2fd260 Mon Sep 17 00:00:00 2001 From: Sneha Dantkale Date: Fri, 14 Feb 2020 19:15:02 +0530 Subject: [AAI-2528] | Update to spring-boot 2.1.6.RELEASE Issue-ID: AAI-2528 Change-Id: I87756450c12538af3f21e4affa24ef76724d232c Signed-off-by: Sneha Dantkale Change-Id: I9437899ba1c7f2aec816a8076c954b080f9512fb Signed-off-by: Sneha Dantkale Change-Id: If3ad26f98c815e4872320b2652cf6c2e0b675de0 Signed-off-by: Sneha Dantkale --- aai-rest/src/main/java/org/onap/aai/restclient/NoAuthRestClient.java | 2 +- aai-rest/src/main/java/org/onap/aai/restclient/OneWaySSLRestClient.java | 2 +- aai-rest/src/main/java/org/onap/aai/restclient/TwoWaySSLRestClient.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'aai-rest/src/main') diff --git a/aai-rest/src/main/java/org/onap/aai/restclient/NoAuthRestClient.java b/aai-rest/src/main/java/org/onap/aai/restclient/NoAuthRestClient.java index b5a0101d..31dd0c92 100644 --- a/aai-rest/src/main/java/org/onap/aai/restclient/NoAuthRestClient.java +++ b/aai-rest/src/main/java/org/onap/aai/restclient/NoAuthRestClient.java @@ -41,7 +41,7 @@ public abstract class NoAuthRestClient extends RestClient { public void init() throws Exception { HttpClient client = HttpClients.createDefault(); restTemplate = - new RestTemplateBuilder().requestFactory(new HttpComponentsClientHttpRequestFactory(client)).build(); + new RestTemplateBuilder().requestFactory(() -> new HttpComponentsClientHttpRequestFactory(client)).build(); restTemplate.setErrorHandler(new RestClientResponseErrorHandler()); } diff --git a/aai-rest/src/main/java/org/onap/aai/restclient/OneWaySSLRestClient.java b/aai-rest/src/main/java/org/onap/aai/restclient/OneWaySSLRestClient.java index 30545dba..aa672575 100644 --- a/aai-rest/src/main/java/org/onap/aai/restclient/OneWaySSLRestClient.java +++ b/aai-rest/src/main/java/org/onap/aai/restclient/OneWaySSLRestClient.java @@ -59,7 +59,7 @@ public abstract class OneWaySSLRestClient extends RestClient { HttpClients.custom().setSSLContext(sslContext).setSSLHostnameVerifier((s, sslSession) -> true).build(); restTemplate = - new RestTemplateBuilder().requestFactory(new HttpComponentsClientHttpRequestFactory(client)).build(); + new RestTemplateBuilder().requestFactory(() -> new HttpComponentsClientHttpRequestFactory(client)).build(); restTemplate.setErrorHandler(new RestClientResponseErrorHandler()); diff --git a/aai-rest/src/main/java/org/onap/aai/restclient/TwoWaySSLRestClient.java b/aai-rest/src/main/java/org/onap/aai/restclient/TwoWaySSLRestClient.java index a69977ff..58f2106c 100644 --- a/aai-rest/src/main/java/org/onap/aai/restclient/TwoWaySSLRestClient.java +++ b/aai-rest/src/main/java/org/onap/aai/restclient/TwoWaySSLRestClient.java @@ -62,7 +62,7 @@ public abstract class TwoWaySSLRestClient extends RestClient { HttpClients.custom().setSSLContext(sslContext).setSSLHostnameVerifier((s, sslSession) -> true).build(); restTemplate = - new RestTemplateBuilder().requestFactory(new HttpComponentsClientHttpRequestFactory(client)).build(); + new RestTemplateBuilder().requestFactory(() -> new HttpComponentsClientHttpRequestFactory(client)).build(); restTemplate.setErrorHandler(new RestClientResponseErrorHandler()); -- cgit 1.2.3-korg