From 38bf47b80d057153c76f305431781684f805ac6c Mon Sep 17 00:00:00 2001 From: 25W0103 <25W0103@P98021.kjbank.dom> Date: Fri, 19 Dec 2025 10:56:34 +0900 Subject: [PATCH] =?UTF-8?q?proxy=20=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=ED=95=A8=EC=88=98=EB=8F=84=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/eactive/eai/batch/ftp/FTPUtil.java | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/com/eactive/eai/batch/ftp/FTPUtil.java b/src/com/eactive/eai/batch/ftp/FTPUtil.java index 29db6a4..e208e84 100644 --- a/src/com/eactive/eai/batch/ftp/FTPUtil.java +++ b/src/com/eactive/eai/batch/ftp/FTPUtil.java @@ -28,6 +28,11 @@ public class FTPUtil { 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, // 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, ""); // } // } - + 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, int connTimeout, int setTimeout, int bandWidth, Logger logger, String authType, String fileType, String proxyServer) throws Exception { 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: 키인증