diff options
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)); |