summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/HttpsRest.java7
-rw-r--r--service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/adapter/impl/MultivimProxyAdapterMgrService.java1
2 files changed, 4 insertions, 4 deletions
diff --git a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/HttpsRest.java b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/HttpsRest.java
index fa006c1..64f5968 100644
--- a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/common/util/restclient/HttpsRest.java
+++ b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/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);
+ private static final String UNSUPPORTED_EXCEPTION = "UnsupportedEncodingException: ";
public void initHttpsRest() {
SslContextFactory sslContextFactory = new SslContextFactory();
@@ -187,7 +188,7 @@ public class HttpsRest extends HttpBaseRest {
"request is expierd: " + RestHttpContentExchange.toState(HttpExchange.STATUS_EXPIRED));
}
} catch(UnsupportedEncodingException e) {
- LOG.error("UnsupportedEncodingException: ",e);
+ LOG.error(UNSUPPORTED_EXCEPTION,e);
} catch(Exception e) {//if not specific handling, no use of InterruptedException
LOG.error("InterruptedException: ",e);
}
@@ -229,7 +230,7 @@ public class HttpsRest extends HttpBaseRest {
"request is expierd: " + RestHttpContentExchange.toState(HttpExchange.STATUS_EXPIRED));
}
} catch(UnsupportedEncodingException e) {
- LOG.error("UnsupportedEncodingException: ",e);
+ LOG.error(UNSUPPORTED_EXCEPTION,e);
} catch(Exception e) {
LOG.error("Exception: ",e);
}
@@ -279,7 +280,7 @@ public class HttpsRest extends HttpBaseRest {
"request is expierd: " + RestHttpContentExchange.toState(HttpExchange.STATUS_EXPIRED));
}
} catch(UnsupportedEncodingException e) {
- LOG.error("UnsupportedEncodingException: ",e);
+ LOG.error(UNSUPPORTED_EXCEPTION,e);
} catch(Exception e) {
LOG.error("Exception: ",e);
}
diff --git a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/adapter/impl/MultivimProxyAdapterMgrService.java b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/adapter/impl/MultivimProxyAdapterMgrService.java
index 57aafc2..63ad9ac 100644
--- a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/adapter/impl/MultivimProxyAdapterMgrService.java
+++ b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/adapter/impl/MultivimProxyAdapterMgrService.java
@@ -25,7 +25,6 @@ import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.Executors;
-import org.onap.vfc.nfvo.multivimproxy.service.adapter.inf.IMultivimProxyAdapterMgrService;
import org.onap.vfc.nfvo.multivimproxy.common.constant.Constant;
import org.onap.vfc.nfvo.multivimproxy.common.constant.HttpConstant;
import org.onap.vfc.nfvo.multivimproxy.common.constant.ParamConstant;