Package org.apache.ofbiz.content.ftp
Class SecureFtpClient
java.lang.Object
org.apache.ofbiz.content.ftp.SecureFtpClient
- All Implemented Interfaces:
FtpClientInterface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Close opened connectionvoid
TODO : to implementsvoid
copy
(String path, String fileName, InputStream file) Copy of the give file to the connected server into the path.void
setBinaryTransfer
(boolean isBinary) void
setPassiveMode
(boolean isPassive)
-
Constructor Details
-
SecureFtpClient
public SecureFtpClient()
-
-
Method Details
-
connect
public void connect(String hostname, String username, String password, Long port, Long timeout) throws IOException TODO : to implements- Specified by:
connect
in interfaceFtpClientInterface
- Parameters:
hostname
- hostname to connect tousername
- username to login withpassword
- password to login withport
- port to connect to the server, optionaltimeout
- timeout for connection process, optional- Throws:
IOException
-
copy
Description copied from interface:FtpClientInterface
Copy of the give file to the connected server into the path.- Specified by:
copy
in interfaceFtpClientInterface
- Parameters:
path
- path to copy the file tofileName
- name of the copied filefile
- data to copy- Throws:
IOException
-
list
- Specified by:
list
in interfaceFtpClientInterface
- Throws:
IOException
-
setBinaryTransfer
- Specified by:
setBinaryTransfer
in interfaceFtpClientInterface
- Throws:
IOException
-
setPassiveMode
- Specified by:
setPassiveMode
in interfaceFtpClientInterface
- Throws:
IOException
-
closeConnection
public void closeConnection()Description copied from interface:FtpClientInterface
Close opened connection- Specified by:
closeConnection
in interfaceFtpClientInterface
-