@Component public class RepositoryFtpServer extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
| Constructor and Description |
|---|
RepositoryFtpServer() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
setExternalAddress(String externalAddress)
Set external address of the FTP server that will be returned to clients on
the PASV command.
|
void |
setFtpPort(int ftpPort)
Sets the ftp port.
|
void |
setIdleTimeout(int idleTimeout)
Sets the idle timeout.
|
void |
setKeystorePath(String keystorePath)
Set the path to Java keystore
|
void |
setKeystorePsw(String keystorePsw)
Sets the keystore psw.
|
void |
setMaxLogins(int maxLogins)
Sets the max logins.
|
void |
setMaxThreads(int maxThreads)
Sets the max threads.
|
void |
setMessageResource(org.apache.ftpserver.message.MessageResource messageResource)
Sets the message resource.
|
void |
setPassivePorts(String passivePorts)
Set the passive ports to be used for data connections.
|
void |
setUserManager(org.apache.ftpserver.ftplet.UserManager userManager)
Sets the user manager.
|
public void setExternalAddress(String externalAddress)
externalAddress - the new external addressDataConnectionConfigurationFactory.setPassiveExternalAddress(String)public void setPassivePorts(String passivePorts)
passivePorts - the new passive portsDataConnectionConfigurationFactory.setPassivePorts(String)public void setKeystorePath(String keystorePath)
keytool -genkey -alias testdomain -keyalg RSA -keystore ftpserver.jks -keysize 4096
keystorePath - the new keystore pathpublic void setKeystorePsw(String keystorePsw)
keystorePsw - the new keystore pswpublic void setUserManager(org.apache.ftpserver.ftplet.UserManager userManager)
userManager - the new user managerpublic void setMessageResource(org.apache.ftpserver.message.MessageResource messageResource)
messageResource - the new message resourcepublic void setFtpPort(int ftpPort)
ftpPort - the new ftp portpublic void setMaxLogins(int maxLogins)
maxLogins - the new max loginspublic void setIdleTimeout(int idleTimeout)
idleTimeout - the new idle timeoutpublic void setMaxThreads(int maxThreads)
maxThreads - the new max threadspublic void afterPropertiesSet()
throws org.apache.ftpserver.ftplet.FtpException,
UnknownHostException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanorg.apache.ftpserver.ftplet.FtpExceptionUnknownHostExceptionCopyright © 2018 Global Crop Diversity Trust. All rights reserved.