Class Destroy
- java.lang.Object
-
- org.jivesoftware.smackx.muc.packet.Destroy
-
- All Implemented Interfaces:
Serializable
,Element
,NamedElement
public class Destroy extends Object implements NamedElement, 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
-
-
Constructor Summary
Constructors Constructor Description Destroy(Destroy other)
Destroy(EntityBareJid alternativeJid, String reason)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Destroy
clone()
String
getElementName()
Returns the root element name.EntityBareJid
getJid()
Returns the JID of an alternate location since the current room is being destroyed.String
getReason()
Returns the reason for the room destruction.XmlStringBuilder
toXML(XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Destroy
public Destroy(EntityBareJid alternativeJid, 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 String getReason()
Returns the reason for the room destruction.- Returns:
- the reason for the room destruction.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
-