Class Destroy

java.lang.Object
org.jivesoftware.smackx.muc.packet.Destroy
All Implemented Interfaces:
Serializable, org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.NamedElement

public class Destroy extends Object implements org.jivesoftware.smack.packet.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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Destroy(org.jxmpp.jid.EntityBareJid alternativeJid, String reason)
     
    Destroy(org.jxmpp.jid.EntityBareJid alternativeJid, String password, String reason)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    org.jxmpp.jid.EntityBareJid
    Returns the JID of an alternate location since the current room is being destroyed.
    Returns the password of the alternate location.
    Returns the reason for the room destruction.
    org.jivesoftware.smack.util.XmlStringBuilder
    toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
     

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jivesoftware.smack.packet.Element

    toXML, toXML
  • Field Details

  • Constructor Details

    • Destroy

      public Destroy(Destroy other)
    • Destroy

      public Destroy(org.jxmpp.jid.EntityBareJid alternativeJid, String reason)
    • Destroy

      public Destroy(org.jxmpp.jid.EntityBareJid alternativeJid, String password, String reason)
  • Method Details

    • 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.
    • getPassword

      public String getPassword()
      Returns the password of the alternate location.
      Returns:
      the password of the alternate location.
    • getReason

      public 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:
      toXML in interface org.jivesoftware.smack.packet.Element
    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • clone

      public Destroy clone()
      Overrides:
      clone in class Object