Class MUCInitialPresence.History
- java.lang.Object
-
- org.jivesoftware.smackx.muc.packet.MUCInitialPresence.History
-
- All Implemented Interfaces:
Element,NamedElement
- Enclosing class:
- MUCInitialPresence
public static class MUCInitialPresence.History extends Object implements NamedElement
The History class controls the number of characters or messages to receive when entering a room.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElementName()Returns the root element name.intgetMaxChars()Returns the total number of characters to receive in the history.intgetMaxStanzas()Returns the total number of messages to receive in the history.intgetSeconds()Returns the number of seconds to use to filter the messages received during that time.DategetSince()Returns the since date to use to filter the messages received during that time.XmlStringBuildertoXML(XmlEnvironment enclosingNamespace)
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMaxChars
public int getMaxChars()
Returns the total number of characters to receive in the history.- Returns:
- total number of characters to receive in the history.
-
getMaxStanzas
public int getMaxStanzas()
Returns the total number of messages to receive in the history.- Returns:
- the total number of messages to receive in the history.
-
getSeconds
public int getSeconds()
Returns the number of seconds to use to filter the messages received during that time. In other words, only the messages received in the last "X" seconds will be included in the history.- Returns:
- the number of seconds to use to filter the messages received during that time.
-
getSince
public Date getSince()
Returns the since date to use to filter the messages received during that time. In other words, only the messages received since the datetime specified will be included in the history.- Returns:
- the since date to use to filter the messages received during that time.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment enclosingNamespace)
-
getElementName
public String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
-