<groupId>org.onap.dcaegen2.services</groupId>
<artifactId>pm-mapper</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.1.0-SNAPSHOT</version>
<parent>
<groupId>org.onap.oparent</groupId>
* @throws Exception\r
*/\r
public String send(String method, final String urlString, final String body, final String encodedCredentials) throws Exception {\r
- final UUID invocationID = logger.invoke(ONAPLogConstants.InvocationMode.SYNCHRONOUS);\r
+ String invocationID = Optional.ofNullable((String)MDC.get(ONAPLogConstants.MDCs.INVOCATION_ID))\r
+ .orElse(logger.invoke(ONAPLogConstants.InvocationMode.SYNCHRONOUS).toString());\r
String requestID = Optional.ofNullable((String)MDC.get(ONAPLogConstants.MDCs.REQUEST_ID))\r
.orElse( UUID.randomUUID().toString());\r
String result = "";\r
return result;\r
}\r
\r
- private HttpURLConnection getHttpURLConnection(String method, URL url, UUID invocationID, String requestID) throws IOException {\r
+ private HttpURLConnection getHttpURLConnection(String method, URL url, String invocationID, String requestID) throws IOException {\r
HttpURLConnection connection = (HttpURLConnection) url.openConnection();\r
connection.setReadTimeout(DEFAULT_READ_TIMEOUT);\r
connection.setRequestProperty(ONAPLogConstants.Headers.REQUEST_ID, requestID);\r
- connection.setRequestProperty(ONAPLogConstants.Headers.INVOCATION_ID, invocationID.toString());\r
+ connection.setRequestProperty(ONAPLogConstants.Headers.INVOCATION_ID, invocationID);\r
connection.setRequestProperty(ONAPLogConstants.Headers.PARTNER_NAME, MapperConfig.CLIENT_NAME);\r
connection.setRequestMethod(method);\r
\r
SPDX-License-Identifier: Apache-2.0
============LICENSE_END=========================================================
-->
+<#compress>
<#assign fileHeader = xml.measCollecFile.fileHeader>
<#assign fileFooter = xml.measCollecFile.fileFooter>
<#assign measData = xml.measCollecFile.measData>
"measDataCollection": <@measDataCollection/>
}
</#macro>
+</#compress>
\ No newline at end of file