Hi,
I used to use the following code to stop the download for a specific client
:
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 ...
}
}
I just realized that the org.apache.ftpserver.listener.Connection class and
the getConnectionManager() of the FtpServerContext class were removed.
Does any body know how can I deal with these API changes ?