Class MucClient

  • All Implemented Interfaces:

    
    public class MucClient
    
                        

    The MucClient is responsible for handling a single XMPP connection on which a single MUC is joined.

    Author:

    bbaldino

    Boris Grozev

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • sendStanza

         boolean sendStanza(Stanza stanza)

        Send an xmpp stanza on the xmpp connection

        Parameters:
        stanza - the stanza to send
        Returns:

        true if it is sent successfully, false otherwise

      • setPresenceExtension

         void setPresenceExtension(ExtensionElement extension)

        Adds an extension to our presence in the MUC. If our presence already contains an extension with the same namespace and element name, the old one is removed.

        Parameters:
        extension - the extension to add.
      • setPresenceExtensions

         void setPresenceExtensions(Collection<ExtensionElement> extensions)

        Adds a set of extension to our presence in the MUC. If our presence already contains extensions that match the namespace or element of any of the extensions to be added, the old ones are removed.

        Parameters:
        extensions - the extensions to add.
      • removePresenceExtension

         void removePresenceExtension(String elementName, String namespace)

        Removes from our presence any extensions with the given elementName and namespace.

        Parameters:
        elementName - the element name to match.
        namespace - the namespace to match.