Files
spring-functions-catalog/consumer/xmpp-consumer
Chris Bono 4f393ef9dc Polish "Move xmpp testcontainer to function-test-support"
- Removed custom container
- Removed extra whitespace
- Moved static props to SBT.properties
2022-10-28 13:38:32 -05:00
..
2022-10-20 19:51:36 -05:00

# XMPP Consumer

A consumer that allows you to send messages through a XMPP server.

## Beans for injection

You can import the `XmppConsumerConfiguration` in the application and then inject the following bean.

`Consumer<Message<?> xmppConsumer`

You need to inject this as `Consumer<Message<?> xmppConsumer`.

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

**NOTE:** This is a functional endpoint. One will need to subscribe to this endpoint in order to start accepting data
on it.

## Configuration Options

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

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

## Tests

See this link:src/test/java/org/springframework/cloud/fn/consumer/xmpp/[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/xmpp-sink/README.adoc[README] where this consumer is used to create a Spring Cloud Stream application where it makes a XMPP Sink.