|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ftpserver.impl.DefaultFtpServer
public class DefaultFtpServer
Internal class, do not use directly.
This is the starting point of all the servers. It invokes a new listener
thread. Server implementation is used to create the server
socket and handle client connection.
| Constructor Summary | |
|---|---|
DefaultFtpServer(FtpServerContext serverContext)
Internal constructor, do not use directly. |
|
| Method Summary | |
|---|---|
CommandFactory |
getCommandFactory()
Retrieve the command factory used with this server |
ConnectionConfig |
getConnectionConfig()
Retrieve the connection configuration this server |
FileSystemFactory |
getFileSystem()
Retrieve the file system used with this server |
java.util.Map<java.lang.String,Ftplet> |
getFtplets()
Get all Ftplets registered at this server |
Listener |
getListener(java.lang.String name)
Get a specific listener identified by its name |
java.util.Map<java.lang.String,Listener> |
getListeners()
Get all listeners available one this server |
MessageResource |
getMessageResource()
Retrieve the message resource used with this server |
FtpServerContext |
getServerContext()
Get the root server context. |
UserManager |
getUserManager()
Retrieve the user manager used with this server |
boolean |
isStopped()
Get the server status. |
boolean |
isSuspended()
Is the server suspended |
void |
resume()
Resume the server handler |
void |
start()
Start the server. |
void |
stop()
Stop the server. |
void |
suspend()
Suspend further requests |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFtpServer(FtpServerContext serverContext)
FtpServerFactory instead
| Method Detail |
|---|
public void start()
throws FtpException
start in interface FtpServerFtpExceptionpublic void stop()
start().
stop in interface FtpServerpublic boolean isStopped()
isStopped in interface FtpServerpublic void suspend()
suspend in interface FtpServerpublic void resume()
resume in interface FtpServerpublic boolean isSuspended()
isSuspended in interface FtpServerpublic FtpServerContext getServerContext()
public java.util.Map<java.lang.String,Listener> getListeners()
public Listener getListener(java.lang.String name)
name - The name of the listener
Listener matching the provided namepublic java.util.Map<java.lang.String,Ftplet> getFtplets()
Ftplets registered at this server
Ftpletspublic UserManager getUserManager()
public FileSystemFactory getFileSystem()
FileSystemFactorypublic CommandFactory getCommandFactory()
CommandFactorypublic MessageResource getMessageResource()
MessageResourcepublic ConnectionConfig getConnectionConfig()
MessageResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||