Package org.jivesoftware.smackx.muc
Class HostedRoom
- java.lang.Object
-
- org.jivesoftware.smackx.muc.HostedRoom
-
public class HostedRoom extends java.lang.Object
Hosted rooms by a chat service may be discovered if they are configured to appear in the room directory . The information that may be discovered is the XMPP address of the room and the room name. The address of the room may be used for obtaining more detailed informationMultiUserChatManager.getRoomInfo(org.jxmpp.jid.EntityBareJid)or could be used for joining the roomMultiUserChatManager.getMultiUserChat(org.jxmpp.jid.EntityBareJid)andMultiUserChat.join(org.jxmpp.jid.parts.Resourcepart).
-
-
Constructor Summary
Constructors Constructor Description HostedRoom(DiscoverItems.Item item)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityBareJidgetJid()Returns the XMPP address of the hosted room by the chat service.java.lang.StringgetName()Returns the name of the room.
-
-
-
Constructor Detail
-
HostedRoom
public HostedRoom(DiscoverItems.Item item)
-
-
Method Detail
-
getJid
public EntityBareJid getJid()
Returns the XMPP address of the hosted room by the chat service. This address may be used when creating aMultiUserChatwhen joining a room.- Returns:
- the XMPP address of the hosted room by the chat service.
-
getName
public java.lang.String getName()
Returns the name of the room.- Returns:
- the name of the room.
-
-