Package org.apache.ofbiz.content.ftp
Interface FtpClientInterface
- All Known Implementing Classes:
SecureFtpClient
,SimpleFtpClient
,SshFtpClient
public interface FtpClientInterface
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Close opened connectionvoid
Initialization of a file transfer client, and connection to the given servervoid
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)
-
Method Details
-
connect
void connect(String hostname, String username, String password, Long port, Long timeout) throws IOException, GeneralException Initialization of a file transfer client, and connection to the given server- 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
GeneralException
-
copy
Copy of the give file to the connected server into the path.- Parameters:
path
- path to copy the file tofileName
- name of the copied filefile
- data to copy- Throws:
IOException
-
list
- Throws:
IOException
-
setBinaryTransfer
- Throws:
IOException
-
setPassiveMode
- Throws:
IOException
-
closeConnection
Close opened connection- Throws:
IOException
-