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

Niklas Gustavsson updated FTPSERVER-225:
----------------------------------------

    Fix Version/s: 1.1

> 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
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to