public class ChatHelper extends java.lang.Object implements IMMessageListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
abortConversation(boolean saveFlag,
javax.servlet.http.HttpServletRequest request) |
boolean |
abortConversation(boolean saveFlag,
WebClientSession webClientSession)
This method is called every time the IM session is closed while this chat
session is still opened.
|
boolean |
closeConversation(javax.servlet.http.HttpServletRequest request) |
boolean |
closeConversation(WebClientSession webClientSession)
This method is called every time the user (analyst) closes his/her chat
window.
|
void |
conversationClosed(java.lang.String reason)
This method is called every time the partner (customer) closes his/her
chat window.
|
boolean |
isNewChatHelper() |
boolean |
isNewRecord() |
boolean |
isOpened() |
void |
messageReceived(IMMessageEvent messageEvent)
Handles incoming response messages from partner
|
java.lang.String |
popMessageBuffer()
Get the current message buffer, and clear it out
|
void |
sendMessage(java.lang.String message)
Send a message to target partner
|
void |
validate(long chatIdentifier) |
public void validate(long chatIdentifier)
throws TsdIMException
TsdIMExceptionpublic boolean isNewChatHelper()
public boolean isNewRecord()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void sendMessage(java.lang.String message)
throws IMException
IMExceptionpublic java.lang.String popMessageBuffer()
public void messageReceived(IMMessageEvent messageEvent)
messageReceived in interface IMMessageListenerpublic void conversationClosed(java.lang.String reason)
conversationClosed in interface IMMessageListenerpublic boolean closeConversation(WebClientSession webClientSession) throws java.lang.Exception
java.lang.Exceptionpublic boolean closeConversation(javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
java.lang.Exceptionpublic boolean abortConversation(boolean saveFlag,
WebClientSession webClientSession)
throws java.lang.Exception
java.lang.Exceptionpublic boolean abortConversation(boolean saveFlag,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
java.lang.Exceptionpublic boolean isOpened()