Class MucOwner
- java.lang.Object
-
- rocks.xmpp.extensions.muc.model.owner.MucOwner
-
public final class MucOwner extends Object
The implementation of the<query/>
element in thehttp://jabber.org/protocol/muc#owner
namespace.Usage
This class is immutable.// To create an empty element (to query the configuration form). MucOwner mucOwner = MucOwner.empty();
- See Also:
- XEP-0045: Multi-User Chat, XML Schema
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MucOwner
empty()
Creates an empty query element.DataForm
getConfigurationForm()
Gets the configuration form.Destroy
getDestroy()
Gets the destroy element.static MucOwner
withConfiguration(DataForm dataForm)
Creates a<query/>
element with a<x/>
(data form) child element.static MucOwner
withDestroy(Jid jid, String reason)
Creates a<query/>
element with a<destroy/>
child element.
-
-
-
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.
-
-