Class MUCUser.Invite

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

public static class MUCUser.Invite extends Object implements org.jivesoftware.smack.packet.NamedElement
Represents an invitation for another user to a room. The sender of the invitation must be an occupant of the room. The invitation will be sent to the room which in turn will forward the invitation to the invitee.
  • Field Summary

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

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

    Modifier and Type
    Method
    Description
     
    org.jxmpp.jid.EntityJid
    Returns the bare JID of the inviting user or, optionally, the room JID.
    Returns the message explaining the invitation.
    org.jxmpp.jid.EntityBareJid
    Returns the bare JID of the invitee.
    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
  • Field Details

  • Constructor Details

    • Invite

      public Invite(String reason, org.jxmpp.jid.EntityFullJid from)
    • Invite

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

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

    • getFrom

      public org.jxmpp.jid.EntityJid getFrom()
      Returns the bare JID of the inviting user or, optionally, the room JID. (e.g. 'crone1@shakespeare.lit/desktop').
      Returns:
      the room's occupant that sent the invitation.
    • getReason

      public String getReason()
      Returns the message explaining the invitation.
      Returns:
      the message explaining the invitation.
    • getTo

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