public final class MucOwner extends Object
<query/> element in the http://jabber.org/protocol/muc#owner namespace.
// To create an empty element (to query the configuration form).
MucOwner mucOwner = MucOwner.empty();
This class is immutable.| Modifier and Type | Method and 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. |
public static MucOwner empty()
MucOwner instance.public static MucOwner withDestroy(Jid jid, String reason)
<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>
jid - The JID.reason - The reason.MucOwner instance.public static MucOwner withConfiguration(DataForm dataForm)
<query/> element with a <x/> (data form) child element.dataForm - The configuration form.MucOwner instance.public DataForm getConfigurationForm()
public Destroy getDestroy()
Copyright © 2014–2016 XMPP.rocks. All rights reserved.