|
||||||||||
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 Ftplet s 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 FtpServer
FtpException
public void stop()
stop
in interface FtpServer
public boolean isStopped()
isStopped
in interface FtpServer
public void suspend()
suspend
in interface FtpServer
public void resume()
resume
in interface FtpServer
public boolean isSuspended()
isSuspended
in interface FtpServer
public 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()
Ftplet
s registered at this server
Ftplet
spublic UserManager getUserManager()
public FileSystemFactory getFileSystem()
FileSystemFactory
public CommandFactory getCommandFactory()
CommandFactory
public MessageResource getMessageResource()
MessageResource
public ConnectionConfig getConnectionConfig()
MessageResource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |