public class Server extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT |
| Constructor and Description |
|---|
Server(int port)
Initialize the ftp server on a given port
|
Server(int port,
org.apache.ftpserver.ftplet.Ftplet ftplet) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.ftpserver.ftplet.UserManager |
createUserManager() |
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.
|
public static final int DEFAULT_PORT
public Server(int port)
throws Exception
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.Exceptionprotected org.apache.ftpserver.ftplet.UserManager createUserManager()
throws IOException,
URISyntaxException
IOExceptionURISyntaxExceptionpublic void stop()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.