Change-Id: Idcf4f03cf564a1a454502f9b4382cb603239fc51
Issue-Id:VFC-391
Signed-off-by: luxin <luxin7@huawei.com>
zipFile.close();
} catch(IOException e) {
LOG.error("IOException: " + e);
zipFile.close();
} catch(IOException e) {
LOG.error("IOException: " + e);
- * Copyright 2016 Huawei Technologies Co., Ltd.
+ * Copyright 2016-2017 Huawei Technologies Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.HttpExchange;
import org.eclipse.jetty.http.HttpMethods;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.HttpExchange;
import org.eclipse.jetty.http.HttpMethods;
+import org.onap.vfc.nfvo.vnfm.svnfm.vnfmadapter.service.constant.Constant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
protected HttpClient client = null;
protected HttpClient client = null;
- private static final String LOCAL_HOST = "127.0.0.1";
-
static final String HTTP_PATCH = "PATCH";
static final String HTTP_PATCH = "PATCH";
- String defaultIP = LOCAL_HOST;
+ String defaultIP = Constant.LOCAL_HOST;
int defaultPort = -10000;
int defaultPort = -10000;
JSONArray resArray = new JSONArray();
if(url == null || url.equals("")) {
JSONArray resArray = new JSONArray();
if(url == null || url.equals("")) {
- url = "http://127.0.0.1:31943";
+ url = "http://" + Constant.LOCAL_HOST + ":31943";
public static final String USERNAME = "userName";
public static final String USERNAME = "userName";
+ public static final String LOCAL_HOST = "127.0.0.1";
+
private Constant() {
// private constructor
}
private Constant() {
// private constructor
}