You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2017/04/25 08:00:20 UTC

[jira] [Updated] (FTPSERVER-225) Missing entries in public API for embedded context

     [ https://issues.apache.org/jira/browse/FTPSERVER-225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated FTPSERVER-225:
----------------------------------------
    Fix Version/s:     (was: 1.1.1)
                   1.1.2

> Missing entries in public API for embedded context
> --------------------------------------------------
>
>                 Key: FTPSERVER-225
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-225
>             Project: FtpServer
>          Issue Type: Wish
>          Components: Core
>    Affects Versions: 1.0.0-M4
>            Reporter: Olivier Lourdais
>            Priority: Minor
>             Fix For: 1.1.2
>
>
> 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?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)