Class 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.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.String ELEMENT  
    • Constructor Summary

      Constructors 
      Constructor Description
      Destroy​(Destroy other)  
      Destroy​(org.jxmpp.jid.EntityBareJid alternativeJid, java.lang.String reason)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Destroy clone()  
      java.lang.String getElementName()  
      org.jxmpp.jid.EntityBareJid getJid()
      Returns the JID of an alternate location since the current room is being destroyed.
      java.lang.String getReason()
      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
    • 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:
        toXML in interface org.jivesoftware.smack.packet.Element
      • getElementName

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

        public Destroy clone()
        Overrides:
        clone in class java.lang.Object