Class Destroy
- java.lang.Object
-
- org.jivesoftware.smackx.muc.packet.Destroy
-
- All Implemented Interfaces:
java.io.Serializable,Element,NamedElement
public class Destroy extends java.lang.Object implements NamedElement, java.io.Serializable
Represents 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
-
Constructor Summary
Constructors Constructor Description Destroy(Destroy other)Destroy(EntityBareJid alternativeJid, java.lang.String reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Destroyclone()java.lang.StringgetElementName()Returns the root element name.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.XmlStringBuildertoXML(XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Destroy
public Destroy(EntityBareJid alternativeJid, java.lang.String reason)
-
-
Method Detail
-
getJid
public 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 XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
-