Class GroupChatInvitation
java.lang.Object
org.jivesoftware.smackx.muc.packet.GroupChatInvitation
- All Implemented Interfaces:
 Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
A group chat invitation stanza extension, which is used to invite other
 users to a group chat room.
 This implementation now conforms to XEP-0249: Direct MUC Invitations,
 while staying backwards compatible to legacy MUC invitations.
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionGroupChatInvitation(EntityBareJid roomAddress) Creates a new group chat invitation to the specified room address.GroupChatInvitation(EntityBareJid roomAddress, String reason, String password, boolean continueAsOneToOneChat, String thread) Creates a new group chat invitation to the specified room address. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the groupchat room continues a one-to-one chat.booleanstatic GroupChatInvitationGet the group chat invitation from the given stanza.Returns the root element name.Returns the root element XML namespace.Returns the password needed for entry.Returns the purpose for the invitation.Returns the address of the group chat room.Returns the thread to continue.inthashCode()toXML(XmlEnvironment enclosingNamespace) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName 
- 
Field Details
- 
ELEMENT
Element name of the stanza extension.- See Also:
 
 - 
NAMESPACE
Namespace of the stanza extension.- See Also:
 
 - 
QNAME
 - 
ATTR_CONTINUE
- See Also:
 
 - 
ATTR_JID
- See Also:
 
 - 
ATTR_PASSWORD
- See Also:
 
 - 
ATTR_REASON
- See Also:
 
 - 
ATTR_THREAD
- See Also:
 
 
 - 
 - 
Constructor Details
- 
GroupChatInvitation
Creates a new group chat invitation to the specified room address. GroupChat room addresses are in the formroom@service, whereserviceis the name of group chat server, such aschat.example.com.- Parameters:
 roomAddress- the address of the group chat room.
 - 
GroupChatInvitation
public GroupChatInvitation(EntityBareJid roomAddress, String reason, String password, boolean continueAsOneToOneChat, String thread) Creates a new group chat invitation to the specified room address. GroupChat room addresses are in the formroom@service, whereserviceis the name of group chat server, such aschat.example.com.- Parameters:
 roomAddress- the address of the group chat room.reason- the purpose for the invitationpassword- specifies a password needed for entrycontinueAsOneToOneChat- specifies if the groupchat room continues a one-to-one chat having the designated threadthread- the thread to continue
 
 - 
 - 
Method Details
- 
getReason
Returns the purpose for the invitation.- Returns:
 - the address of the group chat room.
 
 - 
getPassword
Returns the password needed for entry.- Returns:
 - the password needed for entry
 
 - 
getThread
Returns the thread to continue.- Returns:
 - the thread to continue.
 
 - 
continueAsOneToOneChat
Returns whether the groupchat room continues a one-to-one chat.- Returns:
 - whether the groupchat room continues a one-to-one chat.
 
 - 
getRoomAddress
Returns the address of the group chat room. GroupChat room addresses are in the formroom@service, whereserviceis the name of group chat server, such aschat.example.com.- Returns:
 - the address of the group chat room.
 
 - 
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
 getElementNamein interfaceNamedElement- Returns:
 - the element name.
 
 - 
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
 getNamespacein interfaceXmlElement- Returns:
 - the namespace.
 
 - 
toXML
 - 
equals
 - 
hashCode
 - 
from
Get the group chat invitation from the given stanza.- Parameters:
 packet- TODO javadoc me please- Returns:
 - the GroupChatInvitation or null
 
 
 -