Apache JMeter
1.9

org.apache.jmeter.protocol.ftp.sampler
Class FtpClient

java.lang.Object
  |
  +--org.apache.jmeter.protocol.ftp.sampler.FtpClient

public class FtpClient
extends Object

Description of the Class

Author:
mike

Nested Class Summary
 class FtpClient.dataGrabber
          grabs the data from the dataport
 
Constructor Summary
FtpClient()
          Constructor for the FtpClient object
 
Method Summary
 void connect(String host, String username, String password)
          connect to server
 void disconnect()
          disconnect from the server
 String get(String file)
          get a file from the server
static int getLower(int port)
          Gets the Lower attribute of the FtpClient class
static int getPort(int upper, int lower)
          Gets the Port attribute of the FtpClient class
 String getResponse()
          get a file from the server
static int getUpper(int port)
          Gets the Upper attribute of the FtpClient class
 void send(String command)
          send a command to the server
 void setPassive(boolean flag)
          set passive mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpClient

public FtpClient()
Constructor for the FtpClient object

Method Detail

setPassive

public void setPassive(boolean flag)
set passive mode

Parameters:
flag - The new Passive value

getResponse

public String getResponse()
                   throws IOException
get a file from the server

Returns:
The Response value
Throws:
IOException - Description of Exception

get

public String get(String file)
           throws Exception
get a file from the server

Parameters:
file - Description of Parameter
Returns:
Description of the Returned Value
Throws:
Exception - Description of Exception

connect

public void connect(String host,
                    String username,
                    String password)
             throws Exception
connect to server

Parameters:
host - Description of Parameter
username - Description of Parameter
password - Description of Parameter
Throws:
Exception - Description of Exception

disconnect

public void disconnect()
disconnect from the server


send

public void send(String command)
          throws IOException
send a command to the server

Parameters:
command - Description of Parameter
Throws:
IOException - Description of Exception

getPort

public static int getPort(int upper,
                          int lower)
Gets the Port attribute of the FtpClient class

Parameters:
upper - Description of Parameter
lower - Description of Parameter
Returns:
The Port value

getUpper

public static int getUpper(int port)
Gets the Upper attribute of the FtpClient class

Parameters:
port - Description of Parameter
Returns:
The Upper value

getLower

public static int getLower(int port)
Gets the Lower attribute of the FtpClient class

Parameters:
port - Description of Parameter
Returns:
The Lower value

Apache JMeter
1.9

Copyright © 1998-2003 Apache Software Foundation. All Rights Reserved.