FtpPoolConfig.java
896 Bytes
package com.viontech.ftp;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
/**
* ftp配置参数对象 继承自GenericObjectPoolConfig
*/
@Getter
@Setter
public class FtpPoolConfig extends GenericObjectPoolConfig {
private String host;
private int port;
private String username;
private String password;
/** ftp 连接超时时间 毫秒 */
private int connectTimeOut = 6000000;
private String controlEncoding = "utf-8";
/** 缓冲区大小 */
private int bufferSize = 1024;
/** 传输数据格式 2表binary二进制数据 */
private int fileType = 2;
private int dataTimeout = 120000;
private boolean useEPSVwithIPv4 = false;
/** 是否启用被动模式 */
private boolean passiveMode = true;
private String tempPath = System.getProperty("java.io.tmpdir");
}