Merge "Fixed Sonar issues in the onap.clamp.clds.client packages"
authorSébastien Determe <sebastien.determe@intl.att.com>
Tue, 23 Apr 2019 08:14:12 +0000 (08:14 +0000)
committerGerrit Code Review <gerrit@onap.org>
Tue, 23 Apr 2019 08:14:12 +0000 (08:14 +0000)
1  2 
src/main/java/org/onap/clamp/clds/client/DcaeDispatcherServices.java

@@@ -5,6 -5,8 +5,8 @@@
   * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights\r
   *                             reserved.\r
   * ================================================================================\r
+  * Modifications Copyright (c) 2019 Samsung\r
+  * ================================================================================\r
   * Licensed under the Apache License, Version 2.0 (the "License");\r
   * you may not use this file except in compliance with the License.\r
   * You may obtain a copy of the License at\r
@@@ -54,7 -56,6 +56,6 @@@ public class DcaeDispatcherServices 
      private static final String STATUS_URL_LOG = "Status URL extracted: ";\r
      private static final String DCAE_URL_PREFIX = "/dcae-deployments/";\r
      private static final String DCAE_URL_PROPERTY_NAME = "dcae.dispatcher.url";\r
-     public static final String DCAE_REQUESTID_PROPERTY_NAME = "dcae.header.requestId";\r
      private static final String DCAE_LINK_FIELD = "links";\r
      private static final String DCAE_STATUS_FIELD = "status";\r
  \r
          Date startTime = new Date();\r
          LoggingUtils.setTargetContext("DCAE", "getOperationStatus");\r
          try {\r
 -            String responseStr = dcaeHttpConnectionManager.doHttpRequest(statusUrl, "GET", null, null, "DCAE", null, null);\r
 +            String responseStr = dcaeHttpConnectionManager.doHttpRequest(statusUrl, "GET", null,\r
 +                                                                         null, "DCAE", null,\r
 +                                                                         null);\r
              JSONObject jsonObj = parseResponse(responseStr);\r
              String operationType = (String) jsonObj.get("operationType");\r
              String status = (String) jsonObj.get(DCAE_STATUS_FIELD);\r
  \r
      /***\r
       * Returns status URL for deleteExistingDeployment operation.\r
 +     *\r
       * @param deploymentId\r
       *        The deployment ID\r
       * @param serviceTypeId\r