diff options
author | Wojciech Sliwka <wojciech.sliwka@nokia.com> | 2018-08-27 09:22:56 +0200 |
---|---|---|
committer | Wojciech Sliwka <wojciech.sliwka@nokia.com> | 2018-08-27 10:11:37 +0200 |
commit | dda8ed0393f3fc096a44e84b48c821d33ad99177 (patch) | |
tree | d9b2992c3fd7a09462616da73ff9920f8a8226be /vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java | |
parent | ba59d129d90f4a0b97f06d8da1594f29819c01fe (diff) |
Change url to AAI
Change-Id: I7dbaee5df1233362cc6d60aeb80037446771e9e0
Issue-ID: VID-295
Signed-off-by: Wojciech Sliwka <wojciech.sliwka@nokia.com>
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java')
-rw-r--r-- | vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java b/vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java index ebf39c409..4d43d3ba2 100644 --- a/vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java +++ b/vid-app-common/src/main/java/org/onap/vid/aai/util/SystemPropertyHelper.java @@ -38,6 +38,10 @@ public class SystemPropertyHelper { return getSystemProperty(AAIProperties.AAI_SERVER_URL); } + public Optional<String> getAAIServerBaseUrl(){ + return getSystemProperty(AAIProperties.AAI_SERVER_URL_BASE); + } + public Optional<String> getAAIVIDUsername(){ return getSystemProperty(AAIProperties.AAI_VID_USERNAME); } @@ -70,6 +74,10 @@ public class SystemPropertyHelper { return getAAIServerUrl().orElse("") + path; } + public String getServiceBasePath(String path) { + return getAAIServerBaseUrl().orElse("") + path; + } + public String getEncodedCredentials() throws InvalidPropertyException, UnsupportedEncodingException { String vidUsername = getAAIVIDUsername().orElseThrow(InvalidPropertyException::new); String vidPassword = Password.deobfuscate(getAAIVIDPasswd().orElseThrow(InvalidPropertyException::new)); |