sirius.biz.storage.vfs.ftp.ConfigBasedConnectionConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sirius-biz Show documentation
Show all versions of sirius-biz Show documentation
Provides a framework for building web based business applications
/*
* Made with all the love in the world
* by scireum in Remshalden, Germany
*
* Copyright by scireum GmbH
* http://www.scireum.de - [email protected]
*/
package sirius.biz.storage.vfs.ftp;
import org.apache.ftpserver.ConnectionConfig;
import sirius.kernel.di.std.ConfigValue;
/**
* Provides a FTP config based on the system configuration.
*/
class ConfigBasedConnectionConfig implements ConnectionConfig {
@ConfigValue("storage.ftp.maxLoginFailures")
private static int maxLoginFailures;
@ConfigValue("storage.ftp.maxClients")
private static int maxClients;
@ConfigValue("storage.ftp.maxThreads")
private static int maxThreads;
@Override
public int getLoginFailureDelay() {
return 1;
}
@Override
public int getMaxAnonymousLogins() {
return 0;
}
@Override
public int getMaxLoginFailures() {
return maxLoginFailures;
}
@Override
public int getMaxLogins() {
return maxClients;
}
@Override
public boolean isAnonymousLoginEnabled() {
return false;
}
@Override
public int getMaxThreads() {
return maxThreads;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy