Smack

org.jivesoftware.smackx.muc
Class HostedRoom

java.lang.Object
  extended by org.jivesoftware.smackx.muc.HostedRoom

public class HostedRoom
extends 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 information MultiUserChat.getRoomInfo(org.jivesoftware.smack.Connection, String) or could be used for joining the room MultiUserChat.MultiUserChat(org.jivesoftware.smack.Connection, String) and MultiUserChat.join(String).

Author:
Gaston Dombiak

Constructor Summary
HostedRoom(DiscoverItems.Item item)
           
 
Method Summary
 String getJid()
          Returns the XMPP address of the hosted room by the chat service.
 String getName()
          Returns the name of the room.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostedRoom

public HostedRoom(DiscoverItems.Item item)
Method Detail

getJid

public String getJid()
Returns the XMPP address of the hosted room by the chat service. This address may be used when creating a MultiUserChat when joining a room.

Returns:
the XMPP address of the hosted room by the chat service.

getName

public String getName()
Returns the name of the room.

Returns:
the name of the room.

Smack

Copyright © 2003-2007 Jive Software.