|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.protocol.ftp.sampler.FtpClient
Simple FTP client (non-passive transfers don't work yet). Kind of a hack, lots of room for optimizations.
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 |
public FtpClient()
Method Detail |
public void setPassive(boolean flag)
flag
- the new Passive valuepublic String getResponse() throws IOException
IOException
public String get(String file) throws Exception
Exception
public void connect(String host, String username, String password) throws Exception
Exception
public void disconnect()
public void send(String command) throws IOException
IOException
public static int getPort(int upper, int lower)
public static int getUpper(int port)
public static int getLower(int port)
|
Apache JMeter 2.0.1.20050615 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |