org.ifeth.sehr.client.api
Class FileTransfer

java.lang.Object
  extended byorg.ifeth.sehr.client.api.FileTransfer

public class FileTransfer
extends java.lang.Object

Object and file transfer via AXIS WEB service


Constructor Summary
FileTransfer()
           
 
Method Summary
 java.net.URL getEndpointURL()
           
 java.lang.String getLocalpath()
           
 java.lang.String getWebService()
           
 boolean sendDir(java.lang.String dirname)
          Sends a directory of files to the Web Service.
 boolean sendFile(java.lang.String filename)
           
 void setDirFiles(java.lang.String[] strings)
           
 void setEndpointURL(java.lang.String url)
           
 void setLocalpath(java.lang.String string)
           
 void setWebService(java.lang.String string)
           
 boolean takeDir(java.lang.String dirName)
           
 boolean takeFile(java.lang.String filename)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTransfer

public FileTransfer()
             throws javax.xml.rpc.ServiceException
Method Detail

getWebService

public java.lang.String getWebService()
Returns:

setWebService

public void setWebService(java.lang.String string)
Parameters:
string -

getEndpointURL

public java.net.URL getEndpointURL()
Returns:

setEndpointURL

public void setEndpointURL(java.lang.String url)
Parameters:
url -

getLocalpath

public java.lang.String getLocalpath()
Returns:

setLocalpath

public void setLocalpath(java.lang.String string)
Parameters:
string -

sendFile

public boolean sendFile(java.lang.String filename)
                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

sendDir

public boolean sendDir(java.lang.String dirname)
                throws java.rmi.RemoteException
Sends a directory of files to the Web Service. Cannot upload nested files!!

Parameters:
dirname -
Returns:
Throws:
java.rmi.RemoteException

setDirFiles

public void setDirFiles(java.lang.String[] strings)
Parameters:
strings -

takeFile

public boolean takeFile(java.lang.String filename)
                 throws java.io.FileNotFoundException,
                        java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException

takeDir

public boolean takeDir(java.lang.String dirName)
                throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException