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

java.lang.Object
  extended by tigase.jaxmpp.core.client.xmpp.modules.chat.DefaultChatSelector
All Implemented Interfaces:
ChatSelector

public class DefaultChatSelector
extends Object
implements ChatSelector

Selects chat based on jid, resource and thread-id.


Constructor Summary
DefaultChatSelector()
           
 
Method Summary
 Chat getChat(List<Chat> chats, JID jid, String threadId)
          Selects chat from list based on specified JID and thread id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultChatSelector

public DefaultChatSelector()
Method Detail

getChat

public Chat getChat(List<Chat> chats,
                    JID jid,
                    String threadId)
Description copied from interface: ChatSelector
Selects chat from list based on specified JID and thread id.

Specified by:
getChat in interface ChatSelector
Parameters:
chats - list of chats.
jid - sender JID
threadId - thread-id
Returns:
chat or null if not matched.


Copyright © 2006–2013 Tigase. All rights reserved.