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>
\r
commonHeaders = new MultivaluedHashMap<String, Object> ();\r
commonHeaders.put("Authorization", Collections.singletonList((Object) ("Basic " + authStringEnc)));\r
- \r
+ //Pass calling application identifier to SO\r
+ commonHeaders.put("X-FromAppId",\r
+ Collections.singletonList(SystemProperties.getProperty(SystemProperties.APP_DISPLAY_NAME)));\r
+\r
boolean use_ssl = true;\r
if ( (mso_url != null) && ( !(mso_url.isEmpty()) ) ) {\r
if ( mso_url.startsWith("https")) {\r