public class MUCInitialPresence extends java.lang.Object implements 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()
Returns the root element name.
|
MUCInitialPresence.History |
getHistory()
Returns the history that manages the amount of discussion history provided on
entering a room.
|
java.lang.String |
getNamespace()
Returns the root element XML namespace.
|
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()
Returns the XML representation of the PacketExtension.
|
public java.lang.String getElementName()
PacketExtensiongetElementName in interface PacketExtensionpublic java.lang.String getNamespace()
PacketExtensiongetNamespace in interface PacketExtensionpublic java.lang.String toXML()
PacketExtensiontoXML in interface 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.