org.mule.tck.util.ftp
Class Server
java.lang.Object
org.mule.tck.util.ftp.Server
public class Server
- extends Object
A wrapper for the Apache ftpServer. This will progress into a provider of its own,
but for now is necessary to avoid duplicating code in FTP tests using FTPClient.
Constructor Summary |
Server(int port)
Initialize the ftp server on a given port |
Server(int port,
org.apache.ftpserver.ftplet.Ftplet ftplet)
|
Method Summary |
void |
stop()
Stop the ftp server TODO DZ: we may want to put a port check + wait time in
here to make sure that the port is released before we continue. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
Server
public Server(int port)
throws Exception
- Initialize the ftp server on a given port
- Parameters:
port
- The port to start the server on. Note, you need special
permissions on *nux to open port 22, so we usually choose a very
high port number.
- Throws:
Exception
Server
public Server(int port,
org.apache.ftpserver.ftplet.Ftplet ftplet)
throws Exception
- Throws:
Exception
stop
public void stop()
- Stop the ftp server TODO DZ: we may want to put a port check + wait time in
here to make sure that the port is released before we continue. Windows tends
to hold on to ports longer than it should.
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.