Class MucOwner


  • public final class MucOwner
    extends Object
    The implementation of the <query/> element in the http://jabber.org/protocol/muc#owner namespace.

    Usage

    
     // To create an empty element (to query the configuration form).
     MucOwner mucOwner = MucOwner.empty();
     
    This class is immutable.
    See Also:
    XEP-0045: Multi-User Chat, XML Schema
    • Method Detail

      • empty

        public static MucOwner empty()
        Creates an empty query element.
        Returns:
        The MucOwner instance.
      • withDestroy

        public static MucOwner withDestroy​(Jid jid,
                                           String reason)
        Creates a <query/> element with a <destroy/> child element.

        Sample:

        
         <query xmlns='http://jabber.org/protocol/muc#owner'>
             <destroy jid='coven@chat.shakespeare.lit'>
                 <reason>Macbeth doth come.</reason>
             </destroy>
         </query>
         
        Parameters:
        jid - The JID.
        reason - The reason.
        Returns:
        The MucOwner instance.
      • withConfiguration

        public static MucOwner withConfiguration​(DataForm dataForm)
        Creates a <query/> element with a <x/> (data form) child element.
        Parameters:
        dataForm - The configuration form.
        Returns:
        The MucOwner instance.
      • getConfigurationForm

        public DataForm getConfigurationForm()
        Gets the configuration form.
        Returns:
        The configuration form.
      • getDestroy

        public Destroy getDestroy()
        Gets the destroy element.
        Returns:
        The destroy element.