INT-3972: Allow Disabling of Roster Subscriptions

JIRA: https://jira.spring.io/browse/INT-3972
This commit is contained in:
Artem Bilan
2016-03-25 13:27:34 -04:00
committed by Gary Russell
parent f660b6df2f
commit 69ee423ce2
6 changed files with 34 additions and 9 deletions

View File

@@ -52,6 +52,13 @@ The default name _xmppConnection_ will be used for this connection bean.
If the XMPP Connection goes stale, reconnection attempts will be made with an automatic login as long as the previous connection state was logged (authenticated).
We also register a `ConnectionListener` which will log connection events if the DEBUG logging level is enabled.
The `subscription-mode` initiates the Roster listener to deal with incoming subscriptions from other users.
This functionality isn't always available for the target XMPP servers.
For example GCM fully disables it.
To switch off the Roster listener for subscriptions you should configure it with an empty string when using XML
configuration: `subscription-mode=""`, or with `XmppConnectionFactoryBean.setSubscriptionMode(null)`
when using Java Configuration.
[[xmpp-messages]]
=== XMPP Messages