@NotThreadSafe public class JoinRoom extends Presence
Code example:
// Join an existing room or create a new one.
JoinRoom joinRoom = new JoinRoom("john@jabber.org/notebook", "room@conference.jabber.org/nick");
component.sendPacket(joinRoom);
Presence.Show, Presence.TypedocFactory, element, fromJID, toJID| Constructor and Description |
|---|
JoinRoom(String from,
String to)
Creates a new Presence packet that could be sent to a MUC service in order to join
an existing MUC room or create a new one.
|
addChildElement, createCopy, getChildElement, getPriority, getShow, getStatus, getType, isAvailable, setPriority, setShow, setStatus, setTypeaddExtension, deleteExtension, getElement, getError, getExtension, getFrom, getID, getTo, setError, setError, setFrom, setFrom, setID, setTo, setTo, toString, toXMLpublic JoinRoom(String from, String to)
from - the real full JID of the user that will join or create a MUC room.to - a full JID where the bare JID is the MUC room address and the resource is the
nickname of the user joining the room.Copyright © 2009–2017 Ignite Realtime. All rights reserved.