diff options
author | kaixiliu <liukaixi@chinamobile.com> | 2023-05-09 14:33:39 +0800 |
---|---|---|
committer | kaixiliu <liukaixi@chinamobile.com> | 2023-05-09 14:34:54 +0800 |
commit | 2066b6f83bf3d178cdd3ac99b5b0abf03984c253 (patch) | |
tree | 3bf739a7dfe588bde9e9c9560be36797479a7935 | |
parent | c95dea33e49f07f74fccd9fc78fe3518d6458edf (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.java | 4 |
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(); |