Hi Zorgan
Please send emails regarding FtpServer to the mailing list, that way
everyone interested can participate in the discussion.
On Tue, Apr 29, 2008 at 10:12 AM, Zorgan <[EMAIL PROTECTED]> wrote:
> Hi Niklas,
>
> PLEASE don't drop support for the admin GUI! ;-)
Well, I would certainly like seeing something like it around. However,
my time and knowledge in Swing is quite limited so I can not maintain
it. If someone volunteers to maintain it I would certainly help out
with applying patches and similar.
> In fact, it is a very good example to discover very quickly how to make the
> most benefits from the Apache FTP server.
Agreed.
> I embeded the Apache FTP server in one of my applications. But i don't just
> start and stop the server. Sometimes, I have to stop the download operation
> for a specific client, so I use the following kind of code :
>
> List<Connection> connections =
> ftpServer.getServerContext().getConnectionManager().getAllConnections();
> for (Connection con : connections)
> {
>
> if(con.getSession().getClientAddress().toString().equals("/"+myClient.getAddress())
> &&
> con.getSession().getUser().getName().equals(myClient.getFtpUser()))
> {
> // stop the download ...
> }
> }
This is a good example of what I would like a JMX API to support.
/niklas