com.multisoftgroup.jerry.webchat
Class WebMessenger

java.lang.Object
  extended by com.multisoftgroup.jerry.webchat.WebMessenger
All Implemented Interfaces:
Serializable, EventListener, javax.servlet.http.HttpSessionBindingListener

public class WebMessenger
extends Object
implements javax.servlet.http.HttpSessionBindingListener, Serializable

This class provides methods to communicate with the web layer.

Author:
Pavel Savin
See Also:
Chat, Serialized Form

Constructor Summary
WebMessenger(Chat chat, String visitorName, String greeting, String question, boolean showQuestion, I18nResources dic)
           
 
Method Summary
 void close()
           
 void finalize()
           
 String getHistory()
           
 String getMessages()
           
 String getNextCommand()
           
 String getOperatorComposingMessage()
           
 String getVisitorName()
           
 void sendComposingEvent(boolean composing)
           
 String sendMessage(String message)
           
 void sendSystemMessage(String message)
           
 void setBrowserClosed()
           
 void setDictionary(I18nResources dic)
           
 void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
           
 void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebMessenger

public WebMessenger(Chat chat,
                    String visitorName,
                    String greeting,
                    String question,
                    boolean showQuestion,
                    I18nResources dic)
Method Detail

sendMessage

public String sendMessage(String message)

sendSystemMessage

public void sendSystemMessage(String message)

getMessages

public String getMessages()

getNextCommand

public String getNextCommand()

getOperatorComposingMessage

public String getOperatorComposingMessage()

getHistory

public String getHistory()

sendComposingEvent

public void sendComposingEvent(boolean composing)

setDictionary

public void setDictionary(I18nResources dic)

getVisitorName

public String getVisitorName()

setBrowserClosed

public void setBrowserClosed()

close

public void close()

finalize

public void finalize()
Overrides:
finalize in class Object

valueBound

public void valueBound(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
valueBound in interface javax.servlet.http.HttpSessionBindingListener

valueUnbound

public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent event)
Specified by:
valueUnbound in interface javax.servlet.http.HttpSessionBindingListener