Class MUCUser.Decline

java.lang.Object
org.jivesoftware.smackx.muc.packet.MUCUser.Decline
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement
Enclosing class:
MUCUser

public static class MUCUser.Decline extends Object implements org.jivesoftware.smack.packet.ExtensionElement
Represents a rejection to an invitation from another user to a room. The rejection will be sent to the room which in turn will forward the refusal to the inviting user.
  • Field Summary

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

    Constructors
    Constructor
    Description
    Decline(String reason, org.jxmpp.jid.EntityBareJid to)
     
    Decline(String reason, org.jxmpp.jid.EntityBareJid from, org.jxmpp.jid.EntityBareJid to)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.jxmpp.jid.EntityBareJid
    Returns the bare JID of the invitee that rejected the invitation.
     
    Returns the message explaining why the invitation was rejected.
    org.jxmpp.jid.EntityBareJid
    Returns the bare JID of the inviting user.
    org.jivesoftware.smack.util.XmlStringBuilder
    toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
     

    Methods inherited from class java.lang.Object

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

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

    toXML, toXML

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

    getLanguage, getQName
  • Field Details

  • Constructor Details

    • Decline

      public Decline(String reason, org.jxmpp.jid.EntityBareJid to)
    • Decline

      public Decline(String reason, org.jxmpp.jid.EntityBareJid from, org.jxmpp.jid.EntityBareJid to)
  • Method Details

    • getFrom

      public org.jxmpp.jid.EntityBareJid getFrom()
      Returns the bare JID of the invitee that rejected the invitation. (e.g. 'crone1@shakespeare.lit').
      Returns:
      the bare JID of the invitee that rejected the invitation.
    • getReason

      public String getReason()
      Returns the message explaining why the invitation was rejected.
      Returns:
      the message explaining the reason for the rejection.
    • getTo

      public org.jxmpp.jid.EntityBareJid getTo()
      Returns the bare JID of the inviting user. (e.g. 'hecate@shakespeare.lit')
      Returns:
      the bare JID of the inviting user.
    • 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
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement