public class FtpServerStarter extends Object
FtpRequestHandler
and starts the FTP server for the FTP Endpoint.Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_AUTH |
static String |
NEED |
static String |
PORT |
static String |
WANT |
Constructor and Description |
---|
FtpServerStarter(org.apache.ftpserver.ftplet.Ftplet ftplet,
org.apache.ftpserver.FtpServerFactory serverFactory,
org.apache.ftpserver.listener.ListenerFactory listenerFactory,
org.apache.ftpserver.ftplet.UserManager userManager,
org.apache.ftpserver.ssl.SslConfigurationFactory sslConfigurationFactory) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
org.apache.ftpserver.ssl.ClientAuth |
getClientAuthMode() |
int |
getPort() |
void |
init() |
void |
setClientAuth(String newClientAuth) |
void |
setKeyStoreFile(String keyStoreFilePath) |
void |
setKeyStorePassword(String password) |
void |
setKeyStoreType(String type) |
protected void |
setMaxSleepTime(int seconds)
For testing purposes
|
void |
setPort(int port) |
protected void |
setResetWaitTime(int seconds)
For testing purposes
|
void |
setTrustStoreFile(String trustStoreFilePath) |
void |
setTrustStorePassword(String password) |
void |
setTrustStoreType(String type) |
void |
updateConfiguration(Map<String,Object> properties)
Callback for when the FTP Endpoint configuration is updated through the Admin UI
|
public static final String PORT
public static final String CLIENT_AUTH
public static final String WANT
public static final String NEED
public FtpServerStarter(org.apache.ftpserver.ftplet.Ftplet ftplet, org.apache.ftpserver.FtpServerFactory serverFactory, org.apache.ftpserver.listener.ListenerFactory listenerFactory, org.apache.ftpserver.ftplet.UserManager userManager, org.apache.ftpserver.ssl.SslConfigurationFactory sslConfigurationFactory)
public void init()
public void destroy()
public void updateConfiguration(Map<String,Object> properties)
properties
- map of configurable propertiespublic int getPort()
public org.apache.ftpserver.ssl.ClientAuth getClientAuthMode()
public void setClientAuth(String newClientAuth)
public void setPort(int port)
public void setKeyStoreFile(String keyStoreFilePath)
public void setKeyStorePassword(String password)
public void setKeyStoreType(String type)
public void setTrustStoreFile(String trustStoreFilePath)
public void setTrustStorePassword(String password)
public void setTrustStoreType(String type)
protected void setMaxSleepTime(int seconds)
protected void setResetWaitTime(int seconds)
This work is licensed under a Creative Commons Attribution 4.0 International License.