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 java.lang.Object

Base class for login tools

Version:
$Revision: 1.6 $
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
 FTPClientInterface connect()
          Connect to the remote host
 java.lang.String getHost()
          Get host
 java.lang.String getPassword()
          Get password
 int getTimeout()
           
 java.lang.String getUser()
          Get username
 void setHost(java.lang.String host)
           
 void setPassword(java.lang.String password)
           
 void setProperties(java.util.Properties props)
          Set test properties for connecting
 void setUser(java.lang.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 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

getTimeout

public int getTimeout()

getPassword

public java.lang.String getPassword()
Get password

Returns:
Password

setPassword

public void setPassword(java.lang.String password)

getUser

public java.lang.String getUser()
Get username

Returns:
User

setUser

public void setUser(java.lang.String user)

getHost

public java.lang.String getHost()
Get host

Returns:
Host

setHost

public void setHost(java.lang.String host)

setProperties

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

Parameters:
props - properties obj

connect

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

Returns:
connected FTPClient
Throws:
java.lang.Exception


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