|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.FtpConfig
public class FtpConfig
Ftp configuration class. It has all ftp server configuration parameters. This is not hot-editable. parameters will be loaded once during server startup. We can add our own config parameters.
Constructor Summary | |
---|---|
FtpConfig()
Default constructor - first step. |
Method Summary | |
---|---|
void |
dispose()
Close this config and all the related resources. |
org.apache.avalon.framework.configuration.Configuration |
getConfiguration()
Get configuration |
ConnectionService |
getConnectionService()
Get connection service. |
org.apache.avalon.framework.context.Context |
getContext()
Get context |
int |
getDataPort()
Get data port. |
int |
getDefaultIdleTime()
Get default idle time in seconds. |
File |
getDefaultRoot()
Get default root directory |
IpRestrictorInterface |
getIpRestrictor()
Get IP restrictor object. |
org.apache.avalon.framework.logger.Logger |
getLogger()
Get logger |
int |
getMaxAnonymousLogins()
Get maximum number of anonymous connections. |
int |
getMaxConnections()
Get maximum number of connections. |
AsyncMessageQueue |
getMessageQueue()
Get message queue |
int |
getRemoteAdminPort()
Get rmi port |
int |
getSchedulerInterval()
Get poll interval in seconds. |
InetAddress |
getSelfAddress()
Get self address |
InetAddress |
getServerAddress()
Get server bind address. |
int |
getServerPort()
Get server port. |
FtpStatistics |
getStatistics()
Get global statistics object. |
FtpStatus |
getStatus()
Get ftp status resource. |
String |
getSystemName()
Get the system name. |
UserManagerInterface |
getUserManager()
Get user manager. |
boolean |
isAnonymousLoginAllowed()
Check annonymous login support. |
boolean |
isCreateHome()
Create user home directory if not exist during login |
boolean |
isRemoteAdminAllowed()
Is remote admin allowed |
void |
releaseDataPort(int port)
Release data port |
void |
setConfiguration(org.apache.avalon.framework.configuration.Configuration conf)
Set configuration - fifth step. |
void |
setContext(org.apache.avalon.framework.context.Context ctx)
Set context - third step. |
void |
setLogger(org.apache.avalon.framework.logger.Logger logger)
Set logger - second step. |
void |
setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager)
Set component manager - fourth step. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FtpConfig() throws IOException
IOException
Method Detail |
---|
public void setLogger(org.apache.avalon.framework.logger.Logger logger)
public void setContext(org.apache.avalon.framework.context.Context ctx)
public void setServiceManager(org.apache.avalon.framework.service.ServiceManager serviceManager) throws org.apache.avalon.framework.service.ServiceException
org.apache.avalon.framework.service.ServiceException
public void setConfiguration(org.apache.avalon.framework.configuration.Configuration conf) throws Exception
Exception
public int getDataPort()
public void releaseDataPort(int port)
public org.apache.avalon.framework.logger.Logger getLogger()
public int getServerPort()
public org.apache.avalon.framework.context.Context getContext()
public org.apache.avalon.framework.configuration.Configuration getConfiguration()
public InetAddress getServerAddress()
public InetAddress getSelfAddress()
public boolean isAnonymousLoginAllowed()
public FtpStatus getStatus()
public ConnectionService getConnectionService()
public UserManagerInterface getUserManager()
public int getMaxConnections()
public int getMaxAnonymousLogins()
public int getSchedulerInterval()
public int getDefaultIdleTime()
public File getDefaultRoot()
public boolean isCreateHome()
public int getRemoteAdminPort()
public boolean isRemoteAdminAllowed()
public IpRestrictorInterface getIpRestrictor()
public FtpStatistics getStatistics()
public AsyncMessageQueue getMessageQueue()
public String getSystemName()
public void dispose()
FtpServer.stop()
method will call this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |