org.apache.camel.component.file.remote
Class FtpUtils

java.lang.Object
  extended by org.apache.camel.component.file.remote.FtpUtils

public final class FtpUtils
extends Object

Utility methods for FTP.


Method Summary
static boolean buildDirectory(org.apache.commons.net.ftp.FTPClient ftpClient, String dirName)
           
static boolean buildDirectoryChunks(org.apache.commons.net.ftp.FTPClient ftpClient, String dirName)
           
static boolean connect(org.apache.commons.net.ftp.FTPClient client, RemoteFileConfiguration config)
           
static org.apache.commons.net.ftp.FTPClient createNewFtpClient()
           
static void disconnect(org.apache.commons.net.ftp.FTPClient client)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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