EndTransfer Event
Fired when a file finishes transferring.
Syntax
public void fireEndTransfer(OftpserverEndTransferEvent event); public class OftpserverEndTransferEvent { public String connectionId; public int direction; public String virtualFileName; public String virtualFileDate; public String destination; public String originator; public long fileSize; public String fileHash; public boolean sendEndResponse; }
Remarks
The EndTransfer event is fired when a file is sent or received by the bean.
The FileSize parameter gives the size of the file that was sent or received.
The Direction parameter shows whether the client (0) or the server (1) is sending the data.
VirtualFileName holds the filename.
VirtualFileDate holds the date associated with the file in the format specified by VirtualFileDateFormat. The default value is "MM/dd/yyyy HH:mm:ss".
Originator identifies the sender (SFID) code in the send file request.
Destination identifies the receiver (SFID) code in the send file request.
SendEndResponse indicates whether the EERP/NERP for this request should be sent synchronously or asynchronously. When this parameter is True (default) the bean will automatically respond with an EERP/NERP synchronously. To respond asynchronously set this parameter to False. You may then use the SendEndResponse method to send the response at a later time. See SendEndResponse for more details. Note: VirtualFileDateFormat must be set to a format that includes the necessary level of accuracy.
FileHash holds the hash of the file being transmitted. This is only applicable when the OFTP version is 2.0 and the sender requested a signed receipt. When receiving files this value should be saved if you wish to respond asynchronously using SendEndResponse. See SendEndResponse for more details.