org.ifeth.sehr.client.api
Class FileTransfer
java.lang.Object
org.ifeth.sehr.client.api.FileTransfer
- public class FileTransfer
- extends java.lang.Object
Object and file transfer via AXIS WEB service
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileTransfer
public FileTransfer()
throws javax.xml.rpc.ServiceException
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