Chapter 27. FTPS Source
Receive data from an FTPS server.
27.1. Configuration Options Copy linkLink copied to clipboard!
The following table summarizes the configuration options available for the ftps-source Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
| connectionHost * | Connection Host | The hostname of the FTPS server. | string | ||
| connectionPort * | Connection Port | The port of the FTPS server. | string | 21 | |
| directoryName * | Directory Name | The starting directory. | string | ||
| password * | Password | The password to access the FTPS server. | string | ||
| username * | Username | The username to access the FTPS server. | string | ||
| autoCreate | Autocreate Missing Directories | Automatically create starting directory. | boolean | True | |
| binary | Binary | Specifies the file transfer mode, BINARY or ASCII. Default is ASCII (false). | boolean | False | |
| delete | Delete | If true, the file is deleted after it is processed successfully. | boolean | False | |
| idempotent | Idempotency | Skip already-processed files. | boolean | True | |
| passiveMode | Passive Mode | Specifies to use passive mode connection. | boolean | False | |
| recursive | Recursive | If a directory, look for files in all sub-directories as well. | boolean | False |
* = Fields marked with an asterisk are mandatory.
27.2. Dependencies Copy linkLink copied to clipboard!
27.2.1. Quarkus dependencies Copy linkLink copied to clipboard!
27.3. Usage Copy linkLink copied to clipboard!
27.3.1. Camel JBang usage Copy linkLink copied to clipboard!
27.3.1.1. Prerequisites for JBang Copy linkLink copied to clipboard!
- Install JBang.
You have executed the following command:
jbang app install camel@apache/camel
jbang app install camel@apache/camelCopy to Clipboard Copied! Toggle word wrap Toggle overflow
27.3.1.2. Running a route with JBang Copy linkLink copied to clipboard!
Suppose you have a file named route.yaml with this content:
You can now run it directly through the following command.
camel run route.yaml
camel run route.yaml
27.3.2. Knative Source Copy linkLink copied to clipboard!
You can use the ftps-source Kamelet as a Knative source by binding it to a Knative object.
ftps-source-binding.yaml
27.3.3. Kafka Source Copy linkLink copied to clipboard!
You can use the ftps-source Kamelet as a Kafka source by binding it to a Kafka topic.
ftps-source-binding.yaml