Package rocks.xmpp.extensions.carbons
Class MessageCarbonsManager
- java.lang.Object
-
- rocks.xmpp.core.session.Manager
-
- rocks.xmpp.extensions.carbons.MessageCarbonsManager
-
public final class MessageCarbonsManager extends Manager
Manages message carbons. It allows you to enableCarbons() ()} enable} or disableCarbons() disable} message carbons on the server.If successfully enabled, you should have the following behavior:
- Chat messages sent to your bare jid, will be "forked" to your carbons-enabled session.
- Chat messages sent to another of your available resources (i.e. to another full JID), will be copied to you with
a
MessageCarbons.Received
extension. - Chat messages you sent from another resource, will be copied to you with a
MessageCarbons.Sent
extension.
This class is thread-safe.
- See Also:
- XEP-0280: Message Carbons
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncResult<IQ>
disableCarbons()
Disables message carbons on the server for this session.AsyncResult<IQ>
enableCarbons()
Enables message carbons on the server for this session.-
Methods inherited from class rocks.xmpp.core.session.Manager
isEnabled, setEnabled
-
-
-
-
Method Detail
-
enableCarbons
public final AsyncResult<IQ> enableCarbons()
Enables message carbons on the server for this session.- Returns:
- The async result.
-
disableCarbons
public final AsyncResult<IQ> disableCarbons()
Disables message carbons on the server for this session.- Returns:
- The async result.
-
-