Accept Event
This event is fired when new incoming connection is accepted.
Syntax
public class DefaultSftpserverEventListener implements SftpserverEventListener { ... public void accept(SftpserverAcceptEvent e) {} ... } public class SftpserverAcceptEvent { public String remoteAddress; public int remotePort; public boolean accept; }
Remarks
This event is fired by the component before a new incoming connection is accepted. RemoteAddress contains the IP address of the connecting client. Use the Accept parameter to either accept, or reject the connection.