com.enterprisedt.net.ftp
Class FTPClientFactory

java.lang.Object
  extended by com.enterprisedt.net.ftp.FTPClientFactory

public class FTPClientFactory
extends java.lang.Object

Factory class that permits creating a variety of different FTP clients based on the file transfer protocol required. Plain FTP and various secure FTP protocols are supported.

Version:
$Revision: 1.3 $
Author:
Bruce Blackshaw

Constructor Summary
FTPClientFactory()
           
 
Method Summary
static ProFTPClientInterface createClient(Protocol protocol)
          Create an FTP client that supports the supplied protocol.
static ProFTPClientInterface createClient(Protocol protocol, boolean serverValidation)
          Create an FTP client that supports the supplied protocol.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPClientFactory

public FTPClientFactory()
Method Detail

createClient

public static ProFTPClientInterface createClient(Protocol protocol)
                                          throws FTPException
Create an FTP client that supports the supplied protocol. For secure clients, server validation is switched on by default.

Parameters:
protocol - file transfer protocol required
Returns:
an instance of an FTP client supporting the supplied protocol
Throws:
FTPException

createClient

public static ProFTPClientInterface createClient(Protocol protocol,
                                                 boolean serverValidation)
                                          throws FTPException
Create an FTP client that supports the supplied protocol. Secure clients can be created with server validation enabled or disabled. It is recommended that disabling server validation is only used for testing.

Parameters:
protocol - file transfer protocol required
serverValidation - true if server validation required (recommended)
Returns:
an instance of an FTP client supporting the supplied protocol
Throws:
FTPException


Copyright © 2001-2006 Enterprise Distributed Technologies Ltd. All Rights Reserved.