public final class ChatService extends Object
You get an instance of this class by either using the MultiUserChatManager.createChatService(rocks.xmpp.core.Jid) method or by discovering the chat services at your connected domain.
MultiUserChatManager.createChatService(rocks.xmpp.core.Jid)| Modifier and Type | Method and Description |
|---|---|
ChatRoom |
createRoom(String room)
Creates a new chat room.
|
rocks.xmpp.core.Jid |
getAddress()
Gets the service address.
|
List<ChatRoom> |
getPublicRooms()
Gets the list of public chat rooms hosted by this chat service.
|
String |
toString() |
public List<ChatRoom> getPublicRooms() throws rocks.xmpp.core.XmppException
rocks.xmpp.core.stanza.model.StanzaException - If the chat service returned a stanza error.NoResponseException - If the chat service did not respond.rocks.xmpp.core.XmppExceptionpublic ChatRoom createRoom(String room)
room - The room. This is the local part of the room address, e.g. room@service.public rocks.xmpp.core.Jid getAddress()
Copyright © 2014 XMPP.rocks. All rights reserved.