From e6ccaa275470ee87747a803ed732b8e33e0831c5 Mon Sep 17 00:00:00 2001 From: anupmarathe Date: Wed, 30 Aug 2017 17:56:27 +0530 Subject: 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 --- .../src/main/java/org/openecomp/vid/mso/MsoRestInterface.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vid-app-common/src') 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 (); 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")) { -- cgit 1.2.3-korg