public class DefaultFtpServer extends Object implements FtpServer
Server implementation is used to create the server
socket and handle client connection.| Constructor and Description |
|---|
DefaultFtpServer(FtpServerContext serverContext)
Internal constructor, do not use directly.
|
| Modifier and Type | Method and Description |
|---|---|
CommandFactory |
getCommandFactory()
Retrieve the command factory used with this server
|
ConnectionConfig |
getConnectionConfig()
Retrieve the connection configuration this server
|
org.apache.ftpserver.ftplet.FileSystemFactory |
getFileSystem()
Retrieve the file system used with this server
|
Map<String,org.apache.ftpserver.ftplet.Ftplet> |
getFtplets()
Get all
Ftplets registered at this server |
Listener |
getListener(String name)
Get a specific listener identified by its name
|
Map<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.
|
org.apache.ftpserver.ftplet.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
|
public DefaultFtpServer(FtpServerContext serverContext)
FtpServerFactory insteadpublic void start()
throws org.apache.ftpserver.ftplet.FtpException
public void stop()
start().public boolean isStopped()
public boolean isSuspended()
isSuspended in interface FtpServerpublic FtpServerContext getServerContext()
public Map<String,Listener> getListeners()
public Listener getListener(String name)
name - The name of the listenerListener matching the provided namepublic Map<String,org.apache.ftpserver.ftplet.Ftplet> getFtplets()
Ftplets registered at this serverFtpletspublic org.apache.ftpserver.ftplet.UserManager getUserManager()
public org.apache.ftpserver.ftplet.FileSystemFactory getFileSystem()
FileSystemFactorypublic CommandFactory getCommandFactory()
CommandFactorypublic MessageResource getMessageResource()
MessageResourcepublic ConnectionConfig getConnectionConfig()
MessageResourceCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.