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.
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 MUCInitialPresence()
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.