public class MUCInitialPresence
extends java.lang.Object
implements org.jivesoftware.smack.packet.PacketExtension
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
MUCInitialPresence.History
The History class controls the number of characters or messages to receive
when entering a room.
|
| Constructor and Description |
|---|
MUCInitialPresence() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getElementName() |
MUCInitialPresence.History |
getHistory()
Returns the history that manages the amount of discussion history provided on
entering a room.
|
java.lang.String |
getNamespace() |
java.lang.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(java.lang.String password)
Sets the password to use when the room requires a password.
|
java.lang.String |
toXML() |
public java.lang.String getElementName()
getElementName in interface org.jivesoftware.smack.packet.PacketExtensionpublic java.lang.String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.PacketExtensionpublic java.lang.String toXML()
toXML in interface org.jivesoftware.smack.packet.PacketExtensionpublic MUCInitialPresence.History getHistory()
public java.lang.String getPassword()
public void setHistory(MUCInitialPresence.History history)
history - that manages the amount of discussion history provided on
entering a room.public void setPassword(java.lang.String password)
password - the password to use when the room requires a password.