diff options
author | anupmarathe <anup.marathe@amdocs.com> | 2017-08-30 17:56:27 +0530 |
---|---|---|
committer | anupmarathe <anup.marathe@amdocs.com> | 2017-09-12 16:34:37 +0530 |
commit | e6ccaa275470ee87747a803ed732b8e33e0831c5 (patch) | |
tree | a4c628ab60659d018ed257765f362bd3b3e8cadb /vid-app-common/src/main/java/org/openecomp | |
parent | 49a483a9b40cb429717ccec69fa99e4908aadbb6 (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/main/java/org/openecomp')
-rwxr-xr-x | vid-app-common/src/main/java/org/openecomp/vid/mso/MsoRestInterface.java | 5 |
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")) {
|