|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.ConnectionConfigFactory
public class ConnectionConfigFactory
Factory for creating connection configurations
Constructor Summary | |
---|---|
ConnectionConfigFactory()
|
Method Summary | |
---|---|
ConnectionConfig |
createConnectionConfig()
Create a connection configuration instances based on the configuration on this factory |
int |
getLoginFailureDelay()
The delay in number of milliseconds between login failures. |
int |
getMaxAnonymousLogins()
The maximum number of anonymous logins the server would allow at any given time |
int |
getMaxLoginFailures()
The maximum number of time an user can fail to login before getting disconnected |
int |
getMaxLogins()
The maximum number of concurrently logged in users |
int |
getMaxThreads()
Returns the maximum number of threads the server is allowed to create for processing client requests. |
boolean |
isAnonymousLoginEnabled()
Is anonymous logins allowed at the server? |
void |
setAnonymousLoginEnabled(boolean anonymousLoginEnabled)
Set if anonymous logins are allowed at the server |
void |
setLoginFailureDelay(int loginFailureDelay)
Set the delay in number of milliseconds between login failures. |
void |
setMaxAnonymousLogins(int maxAnonymousLogins)
Sets the maximum number of anonymous logins the server would allow at any given time |
void |
setMaxLoginFailures(int maxLoginFailures)
Set the maximum number of time an user can fail to login before getting disconnected |
void |
setMaxLogins(int maxLogins)
Set she maximum number of concurrently logged in users |
void |
setMaxThreads(int maxThreads)
Sets the maximum number of threads the server is allowed to create for processing client requests. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionConfigFactory()
Method Detail |
---|
public ConnectionConfig createConnectionConfig()
ConnectionConfig
instancepublic int getLoginFailureDelay()
public int getMaxAnonymousLogins()
public int getMaxLoginFailures()
public int getMaxLogins()
public boolean isAnonymousLoginEnabled()
public void setMaxLogins(int maxLogins)
maxLogins
- The maximum number of userspublic int getMaxThreads()
public void setMaxThreads(int maxThreads)
maxThreads
- the maximum number of threads the server is allowed to create
for processing client requests.public void setAnonymousLoginEnabled(boolean anonymousLoginEnabled)
anonymousLoginEnabled
- true if anonymous logins should be enabledpublic void setMaxAnonymousLogins(int maxAnonymousLogins)
maxAnonymousLogins
- The maximum number of anonymous loginspublic void setMaxLoginFailures(int maxLoginFailures)
maxLoginFailures
- The maximum number of failure login attemptspublic void setLoginFailureDelay(int loginFailureDelay)
loginFailureDelay
- The delay time in milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |