Smack

org.jivesoftware.smackx.packet
Class MUCInitialPresence.History

java.lang.Object
  extended by org.jivesoftware.smackx.packet.MUCInitialPresence.History
Enclosing class:
MUCInitialPresence

public static class MUCInitialPresence.History
extends java.lang.Object

The History class controls the number of characters or messages to receive when entering a room.

Author:
Gaston Dombiak

Constructor Summary
MUCInitialPresence.History()
           
 
Method Summary
 int getMaxChars()
          Returns the total number of characters to receive in the history.
 int getMaxStanzas()
          Returns the total number of messages to receive in the history.
 int getSeconds()
          Returns the number of seconds to use to filter the messages received during that time.
 java.util.Date getSince()
          Returns the since date to use to filter the messages received during that time.
 void setMaxChars(int maxChars)
          Sets the total number of characters to receive in the history.
 void setMaxStanzas(int maxStanzas)
          Sets the total number of messages to receive in the history.
 void setSeconds(int seconds)
          Sets the number of seconds to use to filter the messages received during that time.
 void setSince(java.util.Date since)
          Sets the since date to use to filter the messages received during that time.
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MUCInitialPresence.History

public MUCInitialPresence.History()
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 java.util.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.

setMaxChars

public void setMaxChars(int maxChars)
Sets the total number of characters to receive in the history.

Parameters:
maxChars - the total number of characters to receive in the history.

setMaxStanzas

public void setMaxStanzas(int maxStanzas)
Sets the total number of messages to receive in the history.

Parameters:
maxStanzas - the total number of messages to receive in the history.

setSeconds

public void setSeconds(int seconds)
Sets 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.

Parameters:
seconds - the number of seconds to use to filter the messages received during that time.

setSince

public void setSince(java.util.Date since)
Sets 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.

Parameters:
since - the since date to use to filter the messages received during that time.

toXML

public java.lang.String toXML()

Smack

Copyright © 2003-2007 Jive Software.