public final class MUCRoomHistory extends Object
MUCRoom
history. Including chat transcript,
joining and leaving times.Constructor and Description |
---|
MUCRoomHistory(MUCRoom mucRoom,
HistoryStrategy historyStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(org.xmpp.packet.Message packet) |
void |
addOldMessage(String senderJID,
String nickname,
Date sentDate,
String subject,
String body,
String stanza)
Creates a new message and adds it to the history.
|
org.xmpp.packet.Message |
getChangedSubject()
Returns the message within the history of the room that has changed the
room's subject.
|
Iterator<org.xmpp.packet.Message> |
getMessageHistory() |
ListIterator<org.xmpp.packet.Message> |
getReverseMessageHistory()
Obtain the current history to be iterated in reverse mode.
|
boolean |
hasChangedSubject()
Returns true if there is a message within the history of the room that has changed the
room's subject.
|
boolean |
isSubjectChangeRequest(org.xmpp.packet.Message message)
Returns true if the given message qualifies as a subject change request, per XEP-0045.
|
public MUCRoomHistory(MUCRoom mucRoom, HistoryStrategy historyStrategy)
public void addMessage(org.xmpp.packet.Message packet)
public Iterator<org.xmpp.packet.Message> getMessageHistory()
public ListIterator<org.xmpp.packet.Message> getReverseMessageHistory()
public void addOldMessage(String senderJID, String nickname, Date sentDate, String subject, String body, String stanza)
senderJID
- the sender's JID of the message to add to the history.nickname
- the sender's nickname of the message to add to the history.sentDate
- the date when the message was sent to the room.subject
- the subject included in the message.body
- the body of the message.public boolean hasChangedSubject()
public org.xmpp.packet.Message getChangedSubject()
public boolean isSubjectChangeRequest(org.xmpp.packet.Message message)
Copyright © 2003-2008 Jive Software.