proxy 사용하지않는 함수도 생성

This commit is contained in:
25W0103
2025-12-19 10:56:34 +09:00
parent 618ed7bb74
commit 38bf47b80d
+17 -1
View File
@@ -28,6 +28,11 @@ public class FTPUtil {
return FTPAdaptor.listFiles2(server, port, username, password, path, logger); return FTPAdaptor.listFiles2(server, port, username, password, path, logger);
} }
} }
public static FTPFileObject[] listFilesJSCH(String server, int port, String username, String password, String path, boolean isSftp, Logger logger, String authType)
throws IOException {
return listFilesJSCH(server, port, username, password, path, isSftp, logger, authType, null);
}
// public static long retrieve(BatchDoc batchDoc, String server, int port, String username, String password, String remote, String remoteFileName, String localPath, // public static long retrieve(BatchDoc batchDoc, String server, int port, String username, String password, String remote, String remoteFileName, String localPath,
// int connTimeout, int setTimeout, boolean isSftp, int bandWidth, Logger logger, String authType) throws Exception { // int connTimeout, int setTimeout, boolean isSftp, int bandWidth, Logger logger, String authType) throws Exception {
@@ -38,7 +43,11 @@ public class FTPUtil {
// return FTPAdaptor.retrieve(batchDoc,server, port, username, password, remote+remoteFileName, localPath, bandWidth, logger, ""); // return FTPAdaptor.retrieve(batchDoc,server, port, username, password, remote+remoteFileName, localPath, bandWidth, logger, "");
// } // }
// } // }
public static long retrieve(BatchDoc batchDoc, String server, int port, String username, String password, String remote, String remoteFileName, String localPath,
int connTimeout, int setTimeout, int bandWidth, Logger logger, String authType, String fileType) throws Exception {
return retrieve(batchDoc, server, port, username, password, remote, remoteFileName, localPath,
connTimeout, setTimeout, bandWidth, logger, authType, fileType, null);
}
public static long retrieve(BatchDoc batchDoc, String server, int port, String username, String password, String remote, String remoteFileName, String localPath, public static long retrieve(BatchDoc batchDoc, String server, int port, String username, String password, String remote, String remoteFileName, String localPath,
int connTimeout, int setTimeout, int bandWidth, Logger logger, String authType, String fileType, String proxyServer) throws Exception { int connTimeout, int setTimeout, int bandWidth, Logger logger, String authType, String fileType, String proxyServer) throws Exception {
if ( "0".equals(authType)) { if ( "0".equals(authType)) {
@@ -67,6 +76,13 @@ public class FTPUtil {
} }
} }
public static boolean store(BatchDoc batchDoc, String server, int port, String username, String password, String remote, String remoteFileName, String localPath,
int connTimeout, int setTimeout, boolean isSftp, int bandWidth, Logger logger, String authType) throws Exception {
return store(batchDoc, server, port, username, password, remote, remoteFileName, localPath,
connTimeout, setTimeout, isSftp, bandWidth, logger, authType, null);
}
/** /**
* *
* @param authType 1: ID 인증, 2: 키인증 * @param authType 1: ID 인증, 2: 키인증