From 2066b6f83bf3d178cdd3ac99b5b0abf03984c253 Mon Sep 17 00:00:00 2001 From: kaixiliu Date: Tue, 9 May 2023 14:33:39 +0800 Subject: Enable uui-server support Http requests Issue-ID: USECASEUI-808 Signed-off-by: kaixiliu Change-Id: I46679f284444b9f52d5df90a1600069aec9c3ff9 --- .../src/main/java/org/onap/usecaseui/server/util/RestfulServices.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/src/main/java/org/onap/usecaseui/server/util/RestfulServices.java b/server/src/main/java/org/onap/usecaseui/server/util/RestfulServices.java index 717fbbeb..e3ad2744 100644 --- a/server/src/main/java/org/onap/usecaseui/server/util/RestfulServices.java +++ b/server/src/main/java/org/onap/usecaseui/server/util/RestfulServices.java @@ -53,13 +53,11 @@ public class RestfulServices { OkHttpClient okHttpClient = new OkHttpClient.Builder() .connectTimeout(300, TimeUnit.SECONDS) .readTimeout(300, TimeUnit.SECONDS) - .sslSocketFactory(getSSLSocketFactory(), new CustomTrustManager()) - .hostnameVerifier(getHostnameVerifier()) .build(); String msbUrl = getMsbAddress(); Retrofit retrofit = new Retrofit.Builder() - .baseUrl("https://" + msbUrl + "/") + .baseUrl("http://" + msbUrl + "/") .client(okHttpClient) .addConverterFactory(JacksonConverterFactory.create()) .build(); -- cgit 1.2.3-korg