com.multisoftgroup.jerry.webchat.client
Class ChatManager

java.lang.Object
  extended by com.multisoftgroup.jerry.webchat.client.ChatManager

public class ChatManager
extends Object

This manager is responsible for creation Chats within particular JerryAccount. Jerry Messenger keeps only one instance of ChatManager for each JerryAccount.

Author:
Pavel Savin
See Also:
VisitorManager

Constructor Summary
ChatManager(JerryAccount account)
           
 
Method Summary
 void close()
           
 Chat createChat(String visitorName, JID operatorJID, VisitorWebInfo info, String operatorName)
           
 JerryAccount getJerryAccount()
           
 VisitorInfo getVisitorInfo(String visitorAddress)
           
 void releaseVisitorJID(JID visitorJID)
           
 void sendPacket(Packet packet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatManager

ChatManager(JerryAccount account)
Method Detail

createChat

public Chat createChat(String visitorName,
                       JID operatorJID,
                       VisitorWebInfo info,
                       String operatorName)
                throws com.multisoftgroup.common.ApplicationException
Throws:
com.multisoftgroup.common.ApplicationException

close

public void close()

sendPacket

public void sendPacket(Packet packet)

getVisitorInfo

public VisitorInfo getVisitorInfo(String visitorAddress)
                           throws com.multisoftgroup.common.ApplicationException
Throws:
com.multisoftgroup.common.ApplicationException

releaseVisitorJID

public void releaseVisitorJID(JID visitorJID)

getJerryAccount

public JerryAccount getJerryAccount()