summaryrefslogtreecommitdiffstats
path: root/vnfmarket-be/vnf-sdk-marketplace
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-09-21 15:49:03 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-09-21 15:50:30 +0800
commit4db27df99aa03514708282e2d2f288b6c70804fa (patch)
treebb80173820c52b59cb90e67a0337acab75a6d17c /vnfmarket-be/vnf-sdk-marketplace
parentfc3837b1068fae21923f7be29ee67121595f14c2 (diff)
add override annotation in HttpFileManagerImpl
major: L29 L50 L55 L56 Change-Id: Ib0f722c8fcc73a7166fb931ac8c2afb44eb2e562 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> Issue-Id: VNFSDK-85
Diffstat (limited to 'vnfmarket-be/vnf-sdk-marketplace')
-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;
}
-
}
+