Using Applet Wrapper

TIBCO MFT Command Center uses a Java applet to transfer files. For ease of use, TIBCO MFT Command Center provides a wrapper class, SIFTSingleFileTransfer, to wrap the details of how to use the applet. You can create an instance of the class, set necessary parameters, and then transfer a file. The class performs one file transfer at a time.

Prerequisites

The SIFTSingleFileTransfer class is in the NonGUIApplet_0.0.0.1.jar file which is in the directory after installing the Internet Command Line Utility. Put the NonGUIApplet_0.0.0.1.jar file in your classpath when compiling and running your application.

Procedure

  1. Examine the file record, for example, through SOAP calls, to get necessary information about a file to set some parameters of the applet wrapper.
  2. Set the class parameters of the applet wrapper using set methods.
    See Class Parameters for detailed descriptions of the class parameters.
  3. After setting the necessary parameters, call the transferSingleFile() method to transfer the file.

What to do next

After the file transfer is completed, you can use the Get Result class to get information of the transfer.

The following information are returned:
  • returnCode: the return code from the applet.
  • bytesTransfered: the number of bytes transferred.
  • compressedByte: the number of compressed bytes transferred.
  • returnMsg: the return message from the server.