Class MUCUser.Decline
- java.lang.Object
-
- org.jivesoftware.smackx.muc.packet.MUCUser.Decline
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
- Enclosing class:
- MUCUser
public static class MUCUser.Decline extends java.lang.Object implements 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.
-
-
Constructor Summary
Constructors Constructor Description Decline(java.lang.String reason, EntityBareJid to)
Decline(java.lang.String reason, EntityBareJid from, EntityBareJid to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getElementName()
Returns the root element name.EntityBareJid
getFrom()
Returns the bare JID of the invitee that rejected the invitation.java.lang.String
getNamespace()
Returns the root element XML namespace.java.lang.String
getReason()
Returns the message explaining why the invitation was rejected.EntityBareJid
getTo()
Returns the bare JID of the inviting user.XmlStringBuilder
toXML(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.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
Constructor Detail
-
Decline
public Decline(java.lang.String reason, EntityBareJid to)
-
Decline
public Decline(java.lang.String reason, EntityBareJid from, EntityBareJid to)
-
-
Method Detail
-
getFrom
public 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 java.lang.String getReason()
Returns the message explaining why the invitation was rejected.- Returns:
- the message explaining the reason for the rejection.
-
getTo
public 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 XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
-