public final class MucOwner
extends java.lang.Object
The implementation of the <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,
java.lang.String reason)
Creates a
<query/> element with a <destroy/> child element. |
public static MucOwner empty()
Creates an empty query element.
MucOwner
instance.public static MucOwner withDestroy(Jid jid, java.lang.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>
jid
- The JID.reason
- The reason.MucOwner
instance.public static MucOwner withConfiguration(DataForm dataForm)
Creates a <query/>
element with a <x/>
(data form) child element.
dataForm
- The configuration form.MucOwner
instance.public DataForm getConfigurationForm()
Gets the configuration form.
public Destroy getDestroy()
Gets the destroy element.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.