com.multisoftgroup.jerry.webchat.client
Class Chat

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

public class Chat
extends Object

This class provides methods to communicate with Jabber server.

Author:
Pavel Savin
See Also:
WebMessenger

Field Summary
static OperatorLoadManager loadManager
           
 
Constructor Summary
Chat(ChatManager manager, JID visitor, JID operator, VisitorWebInfo info, String operatorName)
           
 
Method Summary
 void addCommand(String command)
           
 void close()
           
 void finalize()
           
 ChatManager getChatManager()
           
 String getMessage()
           
 String getNextCommand()
           
 String getNextSystemMessage()
           
 JID getOperatorJID()
           
 String getOperatorName()
           
 JID getVisitorJID()
           
 VisitorWebInfo getWebInfo()
           
 boolean isOperatorComposing()
           
 void sendComposingEvent(boolean composing)
           
 void sendInfoMessage(String text)
           
 void sendMessage(String text)
           
 void sendOfflineMessage(String subject, String text)
           
 void sendPacket(Packet packet)
           
 void sendPresenceNotification()
           
 void sendSystemMessage(String message)
           
 void setOperatorJID(JID operator)
           
 void setOperatorName(String operatorName)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loadManager

public static OperatorLoadManager loadManager
Constructor Detail

Chat

public Chat(ChatManager manager,
            JID visitor,
            JID operator,
            VisitorWebInfo info,
            String operatorName)
Method Detail

getOperatorJID

public JID getOperatorJID()

getVisitorJID

public JID getVisitorJID()

setOperatorJID

public void setOperatorJID(JID operator)

setOperatorName

public void setOperatorName(String operatorName)

sendMessage

public void sendMessage(String text)

sendComposingEvent

public void sendComposingEvent(boolean composing)

sendOfflineMessage

public void sendOfflineMessage(String subject,
                               String text)

sendInfoMessage

public void sendInfoMessage(String text)

sendPacket

public void sendPacket(Packet packet)

getMessage

public String getMessage()

addCommand

public void addCommand(String command)

getNextCommand

public String getNextCommand()

sendSystemMessage

public void sendSystemMessage(String message)

getNextSystemMessage

public String getNextSystemMessage()

isOperatorComposing

public boolean isOperatorComposing()

close

public void close()

getWebInfo

public VisitorWebInfo getWebInfo()

getOperatorName

public String getOperatorName()

finalize

public void finalize()
              throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable

getChatManager

public ChatManager getChatManager()

sendPresenceNotification

public void sendPresenceNotification()