proxy 사용하지않는 함수도 생성
This commit is contained in:
@@ -29,6 +29,11 @@ public class FTPUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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: 키인증
|
||||||
|
|||||||
Reference in New Issue
Block a user