extensions.gem
Class FileTransferBean

java.lang.Object
  |
  +--extensions.gem.FileTransferBean

public class FileTransferBean
extends java.lang.Object

Program FileTransferBean.java. Comments: This class is used to move files back and forth between the localhost and the remote server (the machine running the WebFlow server). Uses the RemoteFile module to do this. This is a rewrite of the original version by Tom Haupt. Note that this is a _client_ program.


Constructor Summary
FileTransferBean(org.omg.CORBA.ORB anOrb, java.lang.String obj_ior)
          FileTransfer constructor accepts ORB and RemoteFile IOR
FileTransferBean(extensions.gem.RemoteFile rf)
          Use this contstructor to pass a preexisting RemoteFile object from another class.
 
Method Summary
 void DirectoryReceive(java.lang.String localDirectory, java.lang.String remoteDirectory)
          DirectoryReceive copies Directory from the remote host to the local directory
 void DirectorySend(java.lang.String localDirectory, java.lang.String remoteDirectory)
          DirectorySend sends local directory to the remote host
 void FileReceive(java.lang.String localFile, java.lang.String remoteFile)
          FileReceive copies file from the remote host to the local file
 void FileSend(java.lang.String localFile, java.lang.String remoteFile)
          FileSend sends local file to the remote host
 void SetBlockSize(short aSize)
          SetBlockSize sets size of the block of data to be sent for each transfer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransferBean

public FileTransferBean(org.omg.CORBA.ORB anOrb,
                        java.lang.String obj_ior)
FileTransfer constructor accepts ORB and RemoteFile IOR

FileTransferBean

public FileTransferBean(extensions.gem.RemoteFile rf)
Use this contstructor to pass a preexisting RemoteFile object from another class.
Method Detail

FileSend

public void FileSend(java.lang.String localFile,
                     java.lang.String remoteFile)
              throws java.io.FileNotFoundException,
                     WebFlow.RemoteFile.FileException,
                     java.io.IOException
FileSend sends local file to the remote host
Parameters:
source - name of the local file to be sent
dest - name of the remote file

FileReceive

public void FileReceive(java.lang.String localFile,
                        java.lang.String remoteFile)
                 throws WebFlow.RemoteFile.FileException,
                        java.io.IOException
FileReceive copies file from the remote host to the local file
Parameters:
dest - name of the local file to copy to
source - name of the remote file to be copied

DirectorySend

public void DirectorySend(java.lang.String localDirectory,
                          java.lang.String remoteDirectory)
                   throws java.io.FileNotFoundException,
                          WebFlow.RemoteFile.FileException,
                          java.io.IOException
DirectorySend sends local directory to the remote host
Parameters:
source - name of the local directory to be sent
dest - name of the remote directory

DirectoryReceive

public void DirectoryReceive(java.lang.String localDirectory,
                             java.lang.String remoteDirectory)
                      throws WebFlow.RemoteFile.FileException,
                             java.io.IOException
DirectoryReceive copies Directory from the remote host to the local directory
Parameters:
dest - name of the local directory to copy to
source - name of the remote directory to be copied

SetBlockSize

public void SetBlockSize(short aSize)
SetBlockSize sets size of the block of data to be sent for each transfer
Parameters:
aSize - new size of the block