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
TsdIMException
public boolean isNewChatHelper()
public boolean isNewRecord() throws java.rmi.RemoteException
java.rmi.RemoteException
public void sendMessage(java.lang.String message) throws IMException
IMException
public java.lang.String popMessageBuffer()
public void messageReceived(IMMessageEvent messageEvent)
messageReceived
in interface IMMessageListener
public void conversationClosed(java.lang.String reason)
conversationClosed
in interface IMMessageListener
public boolean closeConversation(WebClientSession webClientSession) throws java.lang.Exception
java.lang.Exception
public boolean closeConversation(javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
java.lang.Exception
public boolean abortConversation(boolean saveFlag, WebClientSession webClientSession) throws java.lang.Exception
java.lang.Exception
public boolean abortConversation(boolean saveFlag, javax.servlet.http.HttpServletRequest request) throws java.lang.Exception
java.lang.Exception
public boolean isOpened()