Class Destroy
- java.lang.Object
-
- org.jivesoftware.smackx.muc.packet.Destroy
-
- All Implemented Interfaces:
java.io.Serializable,org.jivesoftware.smack.packet.Element,org.jivesoftware.smack.packet.NamedElement
public class Destroy extends java.lang.Object implements org.jivesoftware.smack.packet.NamedElement, java.io.SerializableRepresents a request to the server to destroy a room. The sender of the request should be the room's owner. If the sender of the destroy request is not the room's owner then the server will answer a "Forbidden" error.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELEMENT
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Destroyclone()java.lang.StringgetElementName()org.jxmpp.jid.EntityBareJidgetJid()Returns the JID of an alternate location since the current room is being destroyed.java.lang.StringgetReason()Returns the reason for the room destruction.org.jivesoftware.smack.util.XmlStringBuildertoXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Destroy
public Destroy(Destroy other)
-
Destroy
public Destroy(org.jxmpp.jid.EntityBareJid alternativeJid, java.lang.String reason)
-
-
Method Detail
-
getJid
public org.jxmpp.jid.EntityBareJid getJid()
Returns the JID of an alternate location since the current room is being destroyed.- Returns:
- the JID of an alternate location.
-
getReason
public java.lang.String getReason()
Returns the reason for the room destruction.- Returns:
- the reason for the room destruction.
-
toXML
public org.jivesoftware.smack.util.XmlStringBuilder toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-
getElementName
public java.lang.String getElementName()
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
clone
public Destroy clone()
- Overrides:
clonein classjava.lang.Object
-
-