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
|
FileSystemFactory |
getFileSystem()
Retrieve the file system used with this server
|
Map<String,Ftplet> |
getFtplets()
Get all
Ftplet s 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.
|
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 FtpException
start
in interface FtpServer
FtpException
public void stop()
start()
.public boolean isStopped()
public boolean isSuspended()
isSuspended
in interface FtpServer
public FtpServerContext getServerContext()
public Map<String,Listener> getListeners()
public Listener getListener(String name)
name
- The name of the listenerListener
matching the provided namepublic Map<String,Ftplet> getFtplets()
Ftplet
s registered at this serverFtplet
spublic UserManager getUserManager()
public FileSystemFactory getFileSystem()
FileSystemFactory
public CommandFactory getCommandFactory()
CommandFactory
public MessageResource getMessageResource()
MessageResource
public ConnectionConfig getConnectionConfig()
MessageResource
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.