tigase.jaxmpp.core.client.xmpp.modules.chat
Class AbstractChatManager

java.lang.Object
  extended by tigase.jaxmpp.core.client.xmpp.modules.chat.AbstractChatManager

public abstract class AbstractChatManager
extends Object


Field Summary
protected  ArrayList<Chat> chats
           
protected  ChatSelector chatSelector
           
protected  Observable observable
           
protected  PacketWriter packetWriter
           
protected  SessionObject sessionObject
           
 
Constructor Summary
protected AbstractChatManager()
           
 
Method Summary
 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)
           
 Chat process(Message message, Observable observable)
           
protected  boolean update(Chat chat, JID fromJid, String threadId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chats

protected final ArrayList<Chat> chats

chatSelector

protected ChatSelector chatSelector

observable

protected Observable observable

packetWriter

protected PacketWriter packetWriter

sessionObject

protected SessionObject sessionObject
Constructor Detail

AbstractChatManager

protected AbstractChatManager()
Method Detail

close

public boolean close(Chat chat)
              throws JaxmppException
Throws:
JaxmppException

createChat

public Chat createChat(JID jid)
                throws JaxmppException
Throws:
JaxmppException

createChatInstance

protected abstract Chat createChatInstance(JID fromJid,
                                           String threadId)

getChat

protected Chat getChat(JID jid,
                       String threadId)

getChats

public List<Chat> getChats()

initialize

protected void initialize()

isChatOpenFor

public boolean isChatOpenFor(BareJID jid)

process

public Chat process(Message message,
                    Observable observable)
             throws JaxmppException
Throws:
JaxmppException

update

protected boolean update(Chat chat,
                         JID fromJid,
                         String threadId)
                  throws JaxmppException
Throws:
JaxmppException


Copyright © 2006-2012 Tigase. All Rights Reserved.