edtFTPj

com.enterprisedt.net.ftp.test
Class TestTools

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

public class TestTools
extends Object

Base class for login tools

Version:
$Revision: 1.6 $
Author:
Bruce Blackshaw

Field Summary
protected  String host
          Remote test host
protected  Logger log
          Log stream
protected  String password
          User password
protected  Properties props
          Test properties
protected  int timeout
          Socket timeout
protected  String user
          Test user
 
Constructor Summary
TestTools()
          Constructor
 
Method Summary
 FTPClientInterface connect()
          Connect to the remote host
 String getHost()
          Get host
 String getPassword()
          Get password
 int getTimeout()
           
 String getUser()
          Get username
 void setHost(String host)
           
 void setPassword(String password)
           
 void setProperties(Properties props)
          Set test properties for connecting
 void setUser(String user)
           
 
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 Properties props
Test properties


user

protected String user
Test user


password

protected String password
User password


host

protected String host
Remote test host


timeout

protected int timeout
Socket timeout

Constructor Detail

TestTools

public TestTools()
Constructor

Method Detail

getTimeout

public int getTimeout()

getPassword

public String getPassword()
Get password

Returns:
Password

setPassword

public void setPassword(String password)

getUser

public String getUser()
Get username

Returns:
User

setUser

public void setUser(String user)

getHost

public String getHost()
Get host

Returns:
Host

setHost

public void setHost(String host)

setProperties

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

Parameters:
props - properties obj

connect

public FTPClientInterface connect()
                           throws Exception
Connect to the remote host

Returns:
connected FTPClient
Throws:
Exception

edtFTPj

Copyright © 2000-2007 Enterprise Distributed Technologies. All Rights Reserved.