com.bea.wli.sftp.spi
Class SFtpClientFactory

java.lang.Object
  extended by com.bea.wli.sftp.spi.SFtpClientFactory

public abstract class SFtpClientFactory
extends Object

This class represents the factory class for creating the SFtp clients.


Field Summary
static String DEFAULT_SFTP_CLIENT_FACTORY
           
 
Constructor Summary
SFtpClientFactory()
          Default constructor
 
Method Summary
abstract  SFtpClient createSFtpClient(String hostName)
          Creates SFtp Client given the host name of the SFTP server
abstract  SFtpClient createSFtpClient(String hostName, int port)
          Creates SFtp Client given the host name and port of the SFTP server
static SFtpClientFactory newInstance(String factoryName)
          Returns new instance of SFTP client factory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SFTP_CLIENT_FACTORY

public static String DEFAULT_SFTP_CLIENT_FACTORY
Constructor Detail

SFtpClientFactory

public SFtpClientFactory()
Default constructor

Method Detail

newInstance

public static SFtpClientFactory newInstance(String factoryName)
                                     throws SFtpClientException
Returns new instance of SFTP client factory. If the factory name is null then the default SFtpClientFactory implementation would be used and the factory class name can be confugured through WLI console

Parameters:
factoryName - - Third part SFtp Client Factory class name configured through WLI console
Returns:
SFtp Client Factory
Throws:
SFtpClientException

createSFtpClient

public abstract SFtpClient createSFtpClient(String hostName)
Creates SFtp Client given the host name of the SFTP server

Parameters:
hostName - - host name of the SFTP server
Returns:
SFtp Client

createSFtpClient

public abstract SFtpClient createSFtpClient(String hostName,
                                            int port)
Creates SFtp Client given the host name and port of the SFTP server

Parameters:
hostName - - host name of the SFTP server
port - - port of SFTP server
Returns:
SFtp Client