|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmpp.packet.Packet
org.xmpp.packet.Presence
org.xmpp.muc.JoinRoom
@NotThreadSafe public class JoinRoom
Initial presence sent when joining an existing room or creating a new room. The JoinRoom presence indicates the posibility of the sender to speak MUC.
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);
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xmpp.packet.Presence |
|---|
Presence.Show, Presence.Type |
| Field Summary |
|---|
| Fields inherited from class org.xmpp.packet.Packet |
|---|
docFactory, element, fromJID, toJID |
| Constructor Summary | |
|---|---|
JoinRoom(java.lang.String from,
java.lang.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. |
|
| Method Summary |
|---|
| Methods inherited from class org.xmpp.packet.Presence |
|---|
addChildElement, createCopy, getChildElement, getPriority, getShow, getStatus, getType, isAvailable, setPriority, setShow, setStatus, setType |
| Methods inherited from class org.xmpp.packet.Packet |
|---|
addExtension, deleteExtension, getElement, getError, getExtension, getFrom, getID, getTo, setError, setError, setFrom, setFrom, setID, setTo, setTo, toString, toXML |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JoinRoom(java.lang.String from,
java.lang.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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||