Files
spring-functions-catalog/consumer/spring-ftp-consumer
Artem Bilan fbe0d220f7 Make MQTT modules as auto-config
* Fix all the Checkstyle violations for those modules
* Introduce a `MosquittoContainerTest` contract into the `spring-function-test-support`
and use it in the MQTT modules
* Fix READMEs for previously migrated modules to auto-configuration
2024-01-05 13:57:55 -05:00
..
2024-01-05 13:57:55 -05:00

# Ftp Consumer

A consumer that allows you to ftp files.
The consumer uses the `FtpMessageHandler` from Spring Integration.

## Beans for injection

The `FtpConsumerConfiguration` auto-configuration provides the following bean:

`Consumer<Message<?>> ftpConsumer`

You can use `ftpConsumer` as a qualifier when injecting.

## Configuration Options

All configuration properties are prefixed with `ftp.consumer`.

For more information on the various options available, please see link:src/main/java/org/springframework/cloud/fn/consumer/ftp/FtpConsumerProperties.java[FtpConsumerProperties].

A `ComponentCustomizer<FtpMessageHandlerSpec>` bean can be added in the target project to provide any custom options for the `FtpMessageHandlerSpec` configuration used by the `ftpConsumer`.

## Tests

See this link:src/test/java/org/springframework/cloud/fn/consumer/ftp[test suite] for the various ways, this consumer is used.

## Other usage

See this https://github.com/spring-cloud/stream-applications/blob/master/applications/sink/ftp-sink/README.adoc[README] where this consumer is used to create a Spring Cloud Stream application where it makes a Ftp sink.