summaryrefslogtreecommitdiffstats
path: root/ResmanagementService/service
diff options
context:
space:
mode:
authorSooriyaa <soponraj@in.ibm.com>2018-09-17 14:26:00 +0530
committerSooriyaa <soponraj@in.ibm.com>2018-09-17 14:26:11 +0530
commitcdbee54181909c7f67e47b28d5d7aa195f13d274 (patch)
treedd1631ee4d63bfe67118c219cbc684d237ba515e /ResmanagementService/service
parentd2dc67803d3f8aa97c3ceab4334c9949bd20018f (diff)
Fixing sonar issue in HttpsRest.java
Fixing sonar issue in HttpsRest.java Issue-ID: VFC-1134 Change-Id: Icd1ce2aa6ec571d8ee68a61bee09fe02bb3dacfa Signed-off-by: Sooriyaa <soponraj@in.ibm.com>
Diffstat (limited to 'ResmanagementService/service')
-rw-r--r--ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java
index cc64ca1..89b207b 100644
--- a/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java
+++ b/ResmanagementService/service/src/main/java/org/onap/vfc/nfvo/resmanagement/common/util/restclient/HttpsRest.java
@@ -32,6 +32,7 @@ import org.slf4j.LoggerFactory;
public class HttpsRest extends HttpBaseRest {
private static final Logger LOG = LoggerFactory.getLogger(HttpsRest.class);
+ public static final String IOEXCEPTION = "IOException";
public void initHttpsRest() {
SslContextFactory sslContextFactory = new SslContextFactory();
@@ -187,7 +188,7 @@ public class HttpsRest extends HttpBaseRest {
try {
client.send(exchange);
} catch(IOException e) {
- LOG.error("IOException", e);
+ LOG.error(IOEXCEPTION, e);
}
try {
int exchangeState = exchange.waitForDone();
@@ -230,7 +231,7 @@ public class HttpsRest extends HttpBaseRest {
try {
client.send(exchange);
} catch(IOException e) {
- LOG.error("IOException", e);
+ LOG.error(IOEXCEPTION, e);
}
try {
@@ -282,7 +283,7 @@ public class HttpsRest extends HttpBaseRest {
try {
client.send(exchange);
} catch(IOException e) {
- LOG.error("IOException", e);
+ LOG.error(IOEXCEPTION, e);
}
try {