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. |
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. |
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. |
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 . |
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.
- 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.