com.enterprisedt.net.ftp.test
Class TestTools

java.lang.Object
  extended bycom.enterprisedt.net.ftp.test.TestTools
Direct Known Subclasses:
FTPTestTools

public abstract class TestTools
extends java.lang.Object

Base class for login tools

Version:
$Revision: 1.1 $
Author:
Bruce Blackshaw

Field Summary
protected  java.lang.String host
          Remote test host
protected  Logger log
          Log stream
protected  java.lang.String password
          User password
protected  java.util.Properties props
          Test properties
protected  int timeout
          Socket timeout
protected  java.lang.String user
          Test user
 
Constructor Summary
TestTools()
          Constructor
 
Method Summary
abstract  FTPClientInterface connect()
          Connect to the remote host
 void setProperties(java.util.Properties props)
          Set test properties for connecting
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected Logger log
Log stream


props

protected java.util.Properties props
Test properties


user

protected java.lang.String user
Test user


password

protected java.lang.String password
User password


host

protected java.lang.String host
Remote test host


timeout

protected int timeout
Socket timeout

Constructor Detail

TestTools

public TestTools()
Constructor

Method Detail

setProperties

public void setProperties(java.util.Properties props)
Set test properties for connecting

Parameters:
props - properties obj

connect

public abstract FTPClientInterface connect()
                                    throws java.lang.Exception
Connect to the remote host

Returns:
connected FTPClient
Throws:
java.lang.Exception


Copyright (c) 2001-2004 Enterprise Distributed Technologies Ltd. All Rights Reserved.