aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src
diff options
context:
space:
mode:
authoranupmarathe <anup.marathe@amdocs.com>2017-08-30 17:56:27 +0530
committeranupmarathe <anup.marathe@amdocs.com>2017-09-12 16:34:37 +0530
commite6ccaa275470ee87747a803ed732b8e33e0831c5 (patch)
treea4c628ab60659d018ed257765f362bd3b3e8cadb /vid-app-common/src
parent49a483a9b40cb429717ccec69fa99e4908aadbb6 (diff)
Fix to pass calling application identifier to SO
VID passes application identity to AAI in request header against key X-FromAppId. It helps in debugging by providing information about which application called AAI api. Similar change for SO is done to pass 'VID' in request header against key X-FromAppId. Issue-ID: VID-41 Change-Id: Icc627f2c9a020465e4a8af279162178f917018cd Signed-off-by: anupmarathe <anup.marathe@amdocs.com>
Diffstat (limited to 'vid-app-common/src')
-rwxr-xr-xvid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java
index 31a762efe..f964b8353 100755
--- a/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java
+++ b/vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java
@@ -84,7 +84,10 @@ public class MsoRestInterface extends MsoRestInt implements MsoRestInterfaceIfc
commonHeaders = new MultivaluedHashMap<String, Object> ();
commonHeaders.put("Authorization", Collections.singletonList((Object) ("Basic " + authStringEnc)));
-
+ //Pass calling application identifier to SO
+ commonHeaders.put("X-FromAppId",
+ Collections.singletonList(SystemProperties.getProperty(SystemProperties.APP_DISPLAY_NAME)));
+
boolean use_ssl = true;
if ( (mso_url != null) && ( !(mso_url.isEmpty()) ) ) {
if ( mso_url.startsWith("https")) {