|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smackx.packet.MUCInitialPresence
public class MUCInitialPresence
Represents extended presence information whose sole purpose is to signal the ability of the occupant to speak the MUC protocol when joining a room. If the room requires a password then the MUCInitialPresence should include one.
The amount of discussion history provided on entering a room (perhaps because the user is on a low-bandwidth connection or is using a small-footprint client) could be managed by setting a configured History instance to the MUCInitialPresence instance.
setHistory(MUCInitialPresence.History).
Nested Class Summary | |
---|---|
static class |
MUCInitialPresence.History
The History class controls the number of characters or messages to receive when entering a room. |
Constructor Summary | |
---|---|
MUCInitialPresence()
|
Method Summary | |
---|---|
String |
getElementName()
Returns the root element name. |
MUCInitialPresence.History |
getHistory()
Returns the history that manages the amount of discussion history provided on entering a room. |
String |
getNamespace()
Returns the root element XML namespace. |
String |
getPassword()
Returns the password to use when the room requires a password. |
void |
setHistory(MUCInitialPresence.History history)
Sets the History that manages the amount of discussion history provided on entering a room. |
void |
setPassword(String password)
Sets the password to use when the room requires a password. |
String |
toXML()
Returns the XML reppresentation of the PacketExtension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MUCInitialPresence()
Method Detail |
---|
public String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension
public MUCInitialPresence.History getHistory()
public String getPassword()
public void setHistory(MUCInitialPresence.History history)
history
- that manages the amount of discussion history provided on
entering a room.public void setPassword(String password)
password
- the password to use when the room requires a password.
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |