On Thu, May 15, 2008 at 2:02 PM, Niklas Gustavsson <[EMAIL PROTECTED]> wrote:
>    public static class NotSupportedCommand implements Command {

I just commited this command, so now this code should be sufficient for you:

        DefaultFtpServerContext context = new DefaultFtpServerContext();
        DefaultCommandFactory commandFactory = new DefaultCommandFactory();

        Map<String, Command> customCommands = new HashMap<String, Command>();
        customCommands.put("EPSV", new NotSupportedCommand());
        commandFactory.setCommandMap(customCommands);

        context.setCommandFactory(commandFactory);

        FtpServer server = new FtpServer(context);
        server.start();

/niklas

Reply via email to