summaryrefslogtreecommitdiffstats
path: root/vnfmarket-be/vnf-sdk-marketplace/src/main/java
diff options
context:
space:
mode:
authorMurali Mohan Murthy Potham <murali.p@huawei.com>2017-09-21 08:00:44 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-21 08:00:44 +0000
commit1d2cfe589baddb0f1586f6eb1e2fdbb0cd43e562 (patch)
treea0f179fa0a278a9169ac73e392dd6ef81c90c2ac /vnfmarket-be/vnf-sdk-marketplace/src/main/java
parent47fc3fdfce1d6e230fbeb8159a8e4a1159d14659 (diff)
parent4db27df99aa03514708282e2d2f288b6c70804fa (diff)
Merge "add override annotation in HttpFileManagerImpl"
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace/src/main/java')
-rw-r--r--vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/filemanage/http/HttpFileManagerImpl.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/filemanage/http/HttpFileManagerImpl.java b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/filemanage/http/HttpFileManagerImpl.java
index 24090937..403c52ac 100644
--- a/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/filemanage/http/HttpFileManagerImpl.java
+++ b/vnfmarket-be/vnf-sdk-marketplace/src/main/java/org/onap/vnfsdk/marketplace/filemanage/http/HttpFileManagerImpl.java
@@ -26,6 +26,7 @@ import org.slf4j.LoggerFactory;
public class HttpFileManagerImpl implements FileManager {
private static final Logger LOGGER = LoggerFactory.getLogger(HttpFileManagerImpl.class);
+ @Override
public boolean upload(String srcPath, String dstPath) {
boolean flag = true;
LOGGER.info("start upload file.srcPath:" + srcPath + " dstPath" + dstPath);
@@ -34,8 +35,7 @@ public class HttpFileManagerImpl implements FileManager {
LOGGER.error("src file not exist!");
return false;
}
- // File dstFile = new File(ToolUtil.getHttpServerPath() + dstPath);
- // LOGGER.info("dstFile AbsolutePath:" + dstFile.getAbsolutePath());
+
String targetDir = ToolUtil.getHttpServerAbsolutePath() + dstPath;
try {
ToolUtil.copyDirectory(srcPath, targetDir, true);
@@ -47,18 +47,19 @@ public class HttpFileManagerImpl implements FileManager {
return flag;
}
+ @Override
public boolean download(String srcPath, String dstPath) {
// TODO Auto-generated method stub
return false;
}
+ @Override
public boolean delete(String srcPath) {
- boolean flag = true;
LOGGER.info("start delete file from http server.srcPath:" + srcPath);
- flag = ToolUtil.deleteDir(new File(ToolUtil.getHttpServerAbsolutePath() + srcPath));
+ boolean flag = ToolUtil.deleteDir(new File(ToolUtil.getHttpServerAbsolutePath() + srcPath));
LOGGER.info("delete file from http server end.flag:" + flag);
return flag;
}
-
}
+