Required Concepts

Before you can use the applet wrapper to transfer a file, you should understand the following concept and working flow used by TIBCO MFT Internet Server.

The definitions and explanations given here might be different than those defined in other parts of this documentation. The definitions and explanations here are for developers to understand the internal working flow of TIBCO MFT Internet Server to transfer a file so that they can use the TIBCO MFT Command Center SOAP calls to get the necessary information about a file and then use this applet wrapper to transfer a file.

File Record

A transfer definition is a record in the TIBCO MFT Internet Server database that represents a user's ability to transfer one or more files. You can view all properties of a transfer definition using the web interface or the command line utility (the Platform Transfer Client Utility reveals less information than the Administrator Client Utility). The important properties for file transfer are as follows:

Property Description
FileId This property must be used to set the fileID value of the applet wrapper.
SendRecvFlag This is a flag which indicates the transfer direction.

The transferDirection parameter of the applet wrapper must be set according to this value.

The valid values are as follows:
  • S: SEND
  • R: RECEIVE
CompressType This is a flag which is used to indicate whether the transfer is compressed.

The compression parameter of the applet wrapper must be set according to this value.

The valid values are as follows:
  • 0: NO
  • 1: YES
ChkptRestartFlag This is a flag which indicates whether checkpoint restart is enabled for the transfer.

The restartTransfer parameter of the applet wrapper must be set according to this value.

The valid values are as follows:
  • 0: NO
  • 1: YES
ChkptInterval This property specifies the checkpoint interval in seconds.

The checkpointInterval parameter of the applet wrapper must be set according to this value.

The value in file record is in minutes. If you set thecheckpointInterval parameter according the value in file record, you must convert the value in minutes to a value in seconds by multiplying by 60.

DirectoryTransfer This is a flag to indicate whether the transfer is a directory transfer.

The applet wrapper acts differently for a directory transfer. For more details on directory transfers, see .

The valid values are as follows:
  • 1: directory transfer.
  • 0: not a directory transfer.

Directory Transfer

TIBCO MFT Internet Server can transfer a whole directory to or from the server. Inside the implementation, TIBCO MFT Internet Server can transfer one file at a time to fulfill the directory transfer.

Before any file transfer, the user must know whether the transfer is a file transfer or a directory transfer by selecting DirectoryTransfer in the file record. If it is a file transfer, set the necessary parameters of the applet wrapper (see the section of Class Parameters) and perform the transfer. Generally speaking, your transfer definitions should be defined as directory transfers unless there is a specific use case for an individual file transfer. If it is a directory transfer, it contains the following two situations:
  • Directory upload: set the localFileName parameter of the applet wrapper and transfer each file in the directory same as a normal file transfer.
  • Directory download: set the serverFileName parameter of the applet wrapper and download each file in the directory of the server. The server file name is the file name specified by the server for each file under its directory.