From 17e1aa838fa6185f10cf0838c73d67f6ccae8e3a Mon Sep 17 00:00:00 2001 From: sushant53 Date: Wed, 15 Mar 2023 13:13:34 +0530 Subject: [DCAEGEN2] Provision for restconf-collector to set to http Un-commented code in RestapiCallNodeUtil.java, so that restconf-collector can support HTTP Issue-ID: DCAEGEN2-3336 Signed-off-by: sushant53 Change-Id: Ie9209003c296379e4eafaa8f4d622137f1b9ab32 Signed-off-by: sushant53 --- .../java/org/onap/dcae/common/RestapiCallNodeUtil.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src') 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 paramMap) throws Exception { -- cgit 1.2.3-korg