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#ownernamespace.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 MucOwnerempty()Creates an empty query element.DataFormgetConfigurationForm()Gets the configuration form.DestroygetDestroy()Gets the destroy element.static MucOwnerwithConfiguration(DataForm dataForm)Creates a<query/>element with a<x/>(data form) child element.static MucOwnerwithDestroy(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
MucOwnerinstance.
-
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
MucOwnerinstance.
-
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
MucOwnerinstance.
-
getConfigurationForm
public DataForm getConfigurationForm()
Gets the configuration form.- Returns:
- The configuration form.
-
getDestroy
public Destroy getDestroy()
Gets the destroy element.- Returns:
- The destroy element.
-
-