FTP Connector (Advanced)
This adapter supports the FTP (File Transfer Protocoll), SFTP (SSH File Transfer Protocol) and FTPS (File Transfer Protocol Secure or FTP-SSL) protocols for sending, receiving, deleting, moving one or more files and folders, and listing folder contents. The adapter supports HTTP, SOCKS4 , and SOCKS5 proxy servers.
Properties
| Determines which file transfer operation will be executed on the processed files. Possible values:
|
Parameters
| Main class of the adapter (do not change!) Possible values: de.softproject.integration.adapter. transferadapter.TransferAdapter: Main class (default) |
| IP address or host name of the FTP(S)/SFTP server Possible values: Any valid string (for example, |
| Port number of the FTP(S)/SFTP server Possible values:
|
| User name for the FTP(S)/SFTP connection |
| Password for the FTP(S)/SFTP connection. If the |
| For additional information about the account, see the FTP library documentation |
| URL to the XML file in the XStore containing the login commands Possible values: Any XStore URL |
| Filter expression that matches the wildcards * and ? to limit the amount of files processed. This applies to the Possible values: Any valid string (for example, |
| Process all files that match the filter criteria in the Possible values:
|
| Attach sent data to the destination file if a destination file of the same name already exists (only for Possible values:
|
| Local folder for sending or receiving multiple files (only if the Possible values: Any valid path specification (e.g. |
| Activate folder mode to process the contents of folders. If the Possible values:
|
| Type of transmission Possible values:
|
| Connection mode Possible values:
|
| Path on the FTP(S)/SFTP server whose destination folder is to be manipulated via FTP(S)/SFTP Possible values: Any string (e.g. |
| Name of the folder or file being processed. If Possible values: Any valid string (e.g. |
| Name of the file to be moved (only for the Possible values: Any valid string (e.g. |
| Path to the folder or file on the FTP(S)/SFTP server that is to be moved (only for the Possible values: Any string (e.g. |
| Delete the path recursively, i.e. including all subfolders and files (only for the Possible values:
|
| Delete the file or folder after it has been received from the FTP(S)/SFTP server (only for the Possible values:
|
| Delete the file or folder after sending it to the FTP(S)/SFTP server (only for the Possible values:
|
| Maximum transfer rate in bytes/second Possible values:
|
| Activate sleep mode (if parameter Possible values:
|
| Wait in seconds between the transfer of the files (if Possible values:
|
| Time limit for TCP connection establishment and transmission in milliseconds Possible values:
|
| Enable host validation to ensure that the requested FTP(S)/SFTP server also matches the FTP(S)/SFTP server that is connected to. Ideally, deactivate only for testing purposes! Possible values:
|
| Enable Implicit FTPS Possible values:
|
| Security mechanism Possible values:
|
| Path to a private key file (not: Java Keystore). If you want to authenticate yourself with a private key on the FTP(S)/SFTP server, the password parameter serves as the password for your private key file. Possible values: Any valid path (e.g. |
| Path to the Known Hosts file, which contains a list of confirmed hosts and their associated public keys Possible values: Any valid path (e.g.
CODE
|
| File transfer protocol Possible values:
|
| Use a proxy server to connect Possible values:
|
| Proxy server type Possible values:
|
| IP address or host name of the proxy server Possible values: Any valid string (e.g. |
| Public IP address or host name of the proxy server if the proxy does not return an address (required, for example, for active FTP transfers, if the FTP(S)/SFTP server must reconnect to the proxy) Possible values: Any valid string (e.g. |
| Port number of the proxy server Possible values: Any positive integer |
| User name for the proxy server |
| Password for the proxy server |
| The encoding used for the command channel. This affects how umlauts are transferred to file names. This value depends on the FTP server. Possible values: UTF-8 (default)
|
| Specifies how many read requests are sent to the SFTP server at the same time. Possible values:
Note: Some older or non-standard SFTP servers do not support parallel read requests. In this case, the error |
Status values
| The operation was successful. |
| The operation failed due to a technical error. |
Input
In file mode (if the directoryMode parameter is disabled), an input document is expected to be sent for the Send operation.
The different login operations have a sequence. If the respective parameters are filled, the following applies:
Login commands are used.
User/password with
AccountInfois used.User/password is used.
Definition of the LoginCommands XML:
<loginCommands>
<loginCommand>cmd1</loginCommand>
<loginCommand>cmd2</loginCommand>
</loginCommands>
Output
In file mode (if the directoryMode parameter is disabled), the Receive operation outputs the received document.
The List operation returns an XML document containing the list of folders and files.
