Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-82

Ftplet onBeforeCommand and onAfterCommand events

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.0-M1, 1.0.0-M2
    • 1.0.0-M3
    • Ftplets
    • None

    Description

      In the mailing list there was a message from someone who wanted to execute some code before a LIST command.
      The ftplet api does not currently allows this.

      The same problem can happen for several other commands so it would be nice to extends the ftplet api to add a way to execute code before and after any command.

      This could be done by adding a couple of method in the ftplet api for every command (onBeforeList, onAfterList) or by using a generic method like:
      onBeforeCommand(enum command, ... )
      onAfterCommand(enum command, ...)

      In these method the developer can create a switch() on the enum to filter the events he wants to catch.

      Of course in onBeforeCommand you should be able to abort the execution of the command.

      Attachments

        Activity

          People

            niklas Niklas Therning
            im-james@hotmail.com im-james
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: