BeforeSendReply Event
Notifies the application of a command reply being sent.
Syntax
public class DefaultFtpserverEventListener implements FtpserverEventListener { ... public void beforeSendReply(FtpserverBeforeSendReplyEvent e) {} ... } public class FtpserverBeforeSendReplyEvent { public long connectionID; public int code; public String reply; public String command; }
Remarks
The class fires this event to tell the application that a command reply is about to be sent. The Command parameter indicates the command that induced the reply, and Code and Reply indicate the pre-generated response.
You can alter the response parameters in your code to send bespoke replies.