public class MUCInitialPresence
extends java.lang.Object
implements org.jivesoftware.smack.packet.ExtensionElement
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)| 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.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
| Constructor and Description |
|---|
MUCInitialPresence() |
| Modifier and Type | Method and Description |
|---|---|
static MUCInitialPresence |
from(org.jivesoftware.smack.packet.Stanza packet)
Retrieve the MUCInitialPresence PacketExtension from packet, if any.
|
java.lang.String |
getElementName() |
static MUCInitialPresence |
getFrom(org.jivesoftware.smack.packet.Stanza packet)
Deprecated.
use
from(Stanza) instead |
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.
|
org.jivesoftware.smack.util.XmlStringBuilder |
toXML() |
public static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public java.lang.String getElementName()
getElementName in interface org.jivesoftware.smack.packet.NamedElementpublic java.lang.String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.ExtensionElementpublic org.jivesoftware.smack.util.XmlStringBuilder toXML()
toXML in interface org.jivesoftware.smack.packet.Elementpublic 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.@Deprecated public static MUCInitialPresence getFrom(org.jivesoftware.smack.packet.Stanza packet)
from(Stanza) insteadpacket - nullpublic static MUCInitialPresence from(org.jivesoftware.smack.packet.Stanza packet)
packet - null