Description
I use Apache FTP Server embedded in an application. From this application, I have to:
- create and delete FTP users on the fly,
- be able to stop a FTP connection (and any associated data connection) from the server side.
I can get Listener and UserManager objects from the FtpServerContext. But I can't get the FtpServerContext object from the FtpServer object I created (It was possible in 1.0.0-M3 version), I have to cast the FtpServer object to DefaultFtpServer, and use a private API.
I think it would be in the public API.
Moreover, the easiest way to create a user is to instantiate the BaseUser class, which is in the private API.
I would like to be able to create users from the public API (maybe through a factory).
Also, classes implementing Authority (TransferRatePermission, WritePermission, ConcurrentLoginPermission) don't seem to be instantiatable through public API (I'm not sure it's really necessary, but I currently use "new TransferRatePermission(0, 0)" as authorities for users I create).
NB: Isn't org.apache.ftpserver.listener.Listener class name is too generic?