diff options
author | sushant53 <sushant.jadhav@t-systems.com> | 2023-03-15 13:13:34 +0530 |
---|---|---|
committer | sushant53 <sushant.jadhav@t-systems.com> | 2023-03-17 16:02:45 +0530 |
commit | 17e1aa838fa6185f10cf0838c73d67f6ccae8e3a (patch) | |
tree | a48f5712b1578b94d19cb9f66b59ee63a9b2ce36 /src/main/java | |
parent | 04667bf8f150970078de9ac400df1f71b74c082c (diff) |
[DCAEGEN2] Provision for restconf-collector to set to http1.4.1
Un-commented code in RestapiCallNodeUtil.java, so that
restconf-collector can support HTTP
Issue-ID: DCAEGEN2-3336
Signed-off-by: sushant53 <sushant.jadhav@t-systems.com>
Change-Id: Ie9209003c296379e4eafaa8f4d622137f1b9ab32
Signed-off-by: sushant53 <sushant.jadhav@t-systems.com>
Diffstat (limited to 'src/main/java')
-rwxr-xr-x | src/main/java/org/onap/dcae/common/RestapiCallNodeUtil.java | 16 |
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 { |