Class 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 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.