org.apache.commons.vfs.provider.ftp
Class FtpClientFactory

java.lang.Object
  extended by org.apache.commons.vfs.provider.ftp.FtpClientFactory

public final class FtpClientFactory
extends java.lang.Object

Create a FtpClient instance.

Version:
$Revision: 833482 $ $Date: 2009-11-06 18:38:44 +0100 (Fr, 06. Nov 2009) $
Author:
Mario Ivankovits

Method Summary
static org.apache.commons.net.ftp.FTPClient createConnection(java.lang.String hostname, int port, char[] username, char[] password, java.lang.String workingDirectory, FileSystemOptions fileSystemOptions)
          Creates a new connection to the server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createConnection

public static org.apache.commons.net.ftp.FTPClient createConnection(java.lang.String hostname,
                                                                    int port,
                                                                    char[] username,
                                                                    char[] password,
                                                                    java.lang.String workingDirectory,
                                                                    FileSystemOptions fileSystemOptions)
                                                             throws FileSystemException
Creates a new connection to the server.

Parameters:
hostname - The host name of the server.
port - The port to connect to.
username - The name of the user for authentication.
password - The user's password.
workingDirectory - The base directory.
fileSystemOptions - The FileSystemOptions.
Returns:
An FTPClient.
Throws:
FileSystemException - if an error occurs while connecting.


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.