public abstract class AbstractChatManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<Chat> |
chats |
protected ChatSelector |
chatSelector |
protected Observable |
observable |
protected PacketWriter |
packetWriter |
protected SessionObject |
sessionObject |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractChatManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close(Chat chat) |
Chat |
createChat(JID jid) |
protected abstract Chat |
createChatInstance(JID fromJid,
String threadId) |
protected Chat |
getChat(JID jid,
String threadId) |
List<Chat> |
getChats() |
protected void |
initialize() |
boolean |
isChatOpenFor(BareJID jid) |
void |
onSessionObjectCleared(SessionObject sessionObject,
Set<SessionObject.Scope> scopes) |
Chat |
process(Message message,
JID interlocutorJid,
Observable observable) |
Chat |
process(Message message,
Observable observable) |
protected void |
resetChatStates() |
protected boolean |
update(Chat chat,
JID fromJid,
String threadId) |
protected ChatSelector chatSelector
protected Observable observable
protected PacketWriter packetWriter
protected SessionObject sessionObject
public boolean close(Chat chat) throws JaxmppException
JaxmppExceptionpublic Chat createChat(JID jid) throws JaxmppException
JaxmppExceptionprotected void initialize()
public boolean isChatOpenFor(BareJID jid)
public void onSessionObjectCleared(SessionObject sessionObject, Set<SessionObject.Scope> scopes) throws JaxmppException
JaxmppExceptionpublic Chat process(Message message, JID interlocutorJid, Observable observable) throws JaxmppException
JaxmppExceptionpublic Chat process(Message message, Observable observable) throws JaxmppException
JaxmppExceptionprotected void resetChatStates()
protected boolean update(Chat chat, JID fromJid, String threadId) throws JaxmppException
JaxmppExceptionCopyright © 2006–2014 Tigase. All rights reserved.