IPWorks EDI 2020 Kotlin Edition

Questions / Feedback?

StartTransfer Event

Fired when a document starts transferring.

Syntax

public open class DefaultOftpserverEventListener : OftpserverEventListener {
  ...
  public override fun startTransfer(e: OftpserverStartTransferEvent) {}
  ...
}

public class OftpserverStartTransferEvent {
  val connectionId: String?
  val direction: Int
  var localFile: String?
  val virtualFileName: String?
  val virtualFileDate: String?
  val destination: String?
  val originator: String?
}

Remarks

This event fires when a file transfer begins.

Direction specifies if the client or server sent the file.

0 (Client) The file originated from the client.
1 (Server) The file originated from the server.

VirtualFileName holds the filename.

VirtualFileDate holds the date associated with the file in the format "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.

LocalFile holds the full path to the file that will be written.

ConnectionId identifies the connected client.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks EDI 2020 Kotlin Edition - Version 20.0 [Build 8033]