summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rwxr-xr-xsrc/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java b/src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java
index 9566658..470df13 100755
--- a/src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java
+++ b/src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java
@@ -3,6 +3,7 @@
* org.onap.dcaegen2.collectors.restconf
* ================================================================================
* Copyright (C) 2018-2019 Huawei. All rights reserved.
+ * Copyright (C) 2023 Deutsche Telekom AG. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -43,14 +44,13 @@ public class RestapiCallNodeUtil {
}
public static String getUriMethod(Boolean authEnabled) {
- /*@TODO: As per configuration */
-// String uri;
-// if (authEnabled) {
-// uri = "https://";
-// } else {
-// uri = "http://";
-// }
- return "https://";
+ String uri;
+ if (authEnabled) {
+ uri = "https://";
+ } else {
+ uri = "http://";
+ }
+ return uri;
}
public static Parameters getParameters(Map<String, String> paramMap) throws Exception {