org.apache.camel.component.file.remote
Class FtpUtils
java.lang.Object
org.apache.camel.component.file.remote.FtpUtils
public final class FtpUtils
- extends Object
Utility methods for FTP.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connect
public static boolean connect(org.apache.commons.net.ftp.FTPClient client,
RemoteFileConfiguration config)
throws IOException
- Throws:
IOException
disconnect
public static void disconnect(org.apache.commons.net.ftp.FTPClient client)
throws IOException
- Throws:
IOException
createNewFtpClient
public static org.apache.commons.net.ftp.FTPClient createNewFtpClient()
buildDirectory
public static boolean buildDirectory(org.apache.commons.net.ftp.FTPClient ftpClient,
String dirName)
throws IOException
- Throws:
IOException
buildDirectoryChunks
public static boolean buildDirectoryChunks(org.apache.commons.net.ftp.FTPClient ftpClient,
String dirName)
throws IOException
- Throws:
IOException
Apache CAMEL