public final class MultiUserChatManager extends ExtensionManager
| Modifier and Type | Method and Description |
|---|---|
void |
addInvitationListener(InvitationListener invitationListener)
Adds an invitation listener, which allows to listen for inbound multi-user chat invitations.
|
ChatService |
createChatService(Jid chatService)
Creates a chat service for the specified service address.
|
Collection<ChatService> |
discoverChatServices()
Discovers the multi-user chat services hosted at the connected domain.
|
Collection<Item> |
discoverEnteredRooms(Jid contact)
Discovers the rooms, where a contact is in.
|
Collection<ChatService> |
getChatServices()
Deprecated.
|
void |
removeInvitationListener(InvitationListener invitationListener)
Removes a previously added invitation listener.
|
isEnabled, setEnabledpublic void addInvitationListener(InvitationListener invitationListener)
invitationListener - The listener.removeInvitationListener(InvitationListener)public void removeInvitationListener(InvitationListener invitationListener)
invitationListener - The listener.addInvitationListener(InvitationListener)@Deprecated public Collection<ChatService> getChatServices() throws XmppException
discoverChatServices()StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic Collection<ChatService> discoverChatServices() throws XmppException
StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic Collection<Item> discoverEnteredRooms(Jid contact) throws XmppException
contact - The contact, which must be a full JID.Item.getJid() has the room address, and Item.getName()} has the nickname.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic ChatService createChatService(Jid chatService)
chatService - The chat service address. Usually this is hosted at the subdomain "conference".Copyright © 2014–2015 XMPP.rocks. All rights reserved.