BeforeSendReply Event
Notifies the application of a command reply being sent.
Syntax
public open class DefaultFtpserverEventListener : FtpserverEventListener { ... public override fun beforeSendReply(e: FtpserverBeforeSendReplyEvent) {} ... } public class FtpserverBeforeSendReplyEvent { val connectionID: Long var code: Int var reply: String? val command: String? }
Remarks
The component 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.