Using the Applet Wrapper

TIBCO MFT Internet Server uses a Java applet to transfer files. For ease of use, TIBCO MFT Internet Server 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 NonGUIApplet_0.0.0.1.jar file which will be in the directory after installing the TIBCO MFT Internet Server File Transfer Command Line Utility. Put the NonGUIApplet_0.0.0.1.jar file in your classpath when compiling and running your application.

Procedure

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