public class MUCInitialPresence extends 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.
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.
|
| Constructor and Description |
|---|
MUCInitialPresence() |
| Modifier and Type | Method and Description |
|---|---|
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 representation of the PacketExtension.
|
public String getElementName()
PacketExtensiongetElementName in interface PacketExtensionpublic String getNamespace()
PacketExtensiongetNamespace in interface PacketExtensionpublic String toXML()
PacketExtensiontoXML in interface PacketExtensionpublic 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.Copyright © 2015 Ignite Realtime. All rights reserved.