|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.muc.HistoryRequest
public class HistoryRequest
Represents the amount of history requested by an occupant while joining a room. There are basically four ways to control the amount of history that a user may receive. Those are: limit by the maximum limit of characters to receive, limit by a maximum number of stanzas to receive, limit to receive only the messages before a given date or of the last X seconds.
A user may combine any of these four methods. The idea is that the user will receive the smallest amount of traffic so the amount of history to collect will stop as soon as any of the requested method has reached its limit.
Constructor Summary | |
---|---|
HistoryRequest(org.dom4j.Element userFragment)
|
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. |
Date |
getSince()
Returns the since date to use to filter the messages received during that time. |
void |
sendHistory(LocalMUCRole joinRole,
MUCRoomHistory roomHistory)
Sends the smallest amount of traffic that meets any combination of the requested criteria. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HistoryRequest(org.dom4j.Element userFragment)
Method Detail |
---|
public int getMaxChars()
public int getMaxStanzas()
public int getSeconds()
public Date getSince()
public void sendHistory(LocalMUCRole joinRole, MUCRoomHistory roomHistory)
joinRole
- the user that will receive the history.roomHistory
- the history of the room.
|
Openfire 3.9.3 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |