提交 dd6bf62a authored 作者: 王红亮's avatar 王红亮

更新ftp配置

上级 b981c513
......@@ -59,6 +59,7 @@ public class FtpAConfiguration {
ftpConfiguration.setUser(FtpOptionRule.USERNAME.key());
ftpConfiguration.setPassword(FtpOptionRule.PASSWORD.key());
ftpConfiguration.setPath(FtpOptionRule.PATH.key());
ftpConfiguration.setType(FtpOptionRule.FILE_FORMAT_TYPE.key());
return ftpConfiguration;
}
......
......@@ -6,16 +6,18 @@ public class FtpConfiguration {
private String user;
private String password;
private String path;
private String type;
public FtpConfiguration() {
}
public FtpConfiguration(String host, String port, String user, String password, String path) {
public FtpConfiguration(String host, String port, String user, String password, String path, String type) {
this.host = host;
this.port = port;
this.user = user;
this.password = password;
this.path = path;
this.type = type;
}
public String getHost() {
......@@ -58,14 +60,23 @@ public class FtpConfiguration {
this.path = path;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
@Override
public String toString() {
return "FtpConfiguration{" +
"host='" + host + '\'' +
", port=" + port +
", port='" + port + '\'' +
", user='" + user + '\'' +
", password='" + password + '\'' +
", path='" + path + '\'' +
", type='" + type + '\'' +
'}';
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论