top.jfunc.common.ftp.one.FtpImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of network Show documentation
Show all versions of network Show documentation
http客户端请求工具类,有多种实现:OKHttp3、ApacheHttpClient、HttpURLConnection,可以随意切换http实现
package top.jfunc.common.ftp.one;
import top.jfunc.common.ftp.ConnectBean;
import top.jfunc.common.ftp.DownloadBean;
import top.jfunc.common.ftp.Ftp;
import top.jfunc.common.ftp.UploadBean;
import java.io.IOException;
/**
* @author xiongshiyan at 2018/4/8
*/
public class FtpImpl implements Ftp {
@Override
public void upload(ConnectBean connectBean, UploadBean uploadBean) throws IOException{
FtpUtil.upload(connectBean,uploadBean);
}
@Override
public void download(ConnectBean connectBean, DownloadBean downloadBean) throws IOException{
FtpUtil.download(connectBean,downloadBean);
}
@Override
public void createDir(ConnectBean connectBean, String remotePath) throws IOException {
FtpUtil.createDir(connectBean,remotePath);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy