aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkaixiliu <liukaixi@chinamobile.com>2023-05-09 14:33:39 +0800
committerkaixiliu <liukaixi@chinamobile.com>2023-05-09 14:34:54 +0800
commit2066b6f83bf3d178cdd3ac99b5b0abf03984c253 (patch)
tree3bf739a7dfe588bde9e9c9560be36797479a7935
parentc95dea33e49f07f74fccd9fc78fe3518d6458edf (diff)
Enable uui-server support Http requests
Issue-ID: USECASEUI-808 Signed-off-by: kaixiliu <liukaixi@chinamobile.com> Change-Id: I46679f284444b9f52d5df90a1600069aec9c3ff9
-rw-r--r--server/src/main/java/org/onap/usecaseui/server/util/RestfulServices.java4
1 files changed, 1 insertions, 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();