public class IMMessageHandlerSTImpl extends java.lang.Object implements IMMessageHandler, com.lotus.sametime.im.ImServiceListener, com.lotus.sametime.im.ImListener
| Constructor and Description |
|---|
IMMessageHandlerSTImpl(IMSessionSTImpl session,
com.lotus.sametime.im.InstantMessagingService imService,
IMUser imPartner,
com.lotus.sametime.core.types.STUser stPartner) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IMMessageListener messageListener) |
void |
closeConversation()
This method allows the user to close a chat conversation
|
void |
dataReceived(com.lotus.sametime.im.ImEvent evt) |
void |
imClosed(com.lotus.sametime.im.ImEvent evt) |
void |
imOpened(com.lotus.sametime.im.ImEvent evt) |
void |
imReceived(com.lotus.sametime.im.ImEvent evt) |
boolean |
isOpened()
Returns true only if the conversation is still opened
|
void |
openImFailed(com.lotus.sametime.im.ImEvent evt) |
void |
removeAllListeners() |
void |
removeListener(IMMessageListener messageListener) |
java.lang.String |
sendMessage(java.lang.String message)
The user account related to the session will be used to send an IM
message to the IM partner related to this object durin its instantiation
|
void |
textReceived(com.lotus.sametime.im.ImEvent evt) |
public IMMessageHandlerSTImpl(IMSessionSTImpl session, com.lotus.sametime.im.InstantMessagingService imService, IMUser imPartner, com.lotus.sametime.core.types.STUser stPartner)
public void addListener(IMMessageListener messageListener) throws IMException
addListener in interface IMMessageHandlerIMExceptionpublic void removeListener(IMMessageListener messageListener)
removeListener in interface IMMessageHandlerpublic void removeAllListeners()
removeAllListeners in interface IMMessageHandlerpublic void imReceived(com.lotus.sametime.im.ImEvent evt)
imReceived in interface com.lotus.sametime.im.ImServiceListenerpublic java.lang.String sendMessage(java.lang.String message)
throws IMException
IMMessageHandlersendMessage in interface IMMessageHandlerIMException - if something wrong happens during the message sendingIMSession.createMessageHandler(IMUser)public void imOpened(com.lotus.sametime.im.ImEvent evt)
imOpened in interface com.lotus.sametime.im.ImListenerpublic void openImFailed(com.lotus.sametime.im.ImEvent evt)
openImFailed in interface com.lotus.sametime.im.ImListenerpublic void textReceived(com.lotus.sametime.im.ImEvent evt)
textReceived in interface com.lotus.sametime.im.ImListenerpublic void dataReceived(com.lotus.sametime.im.ImEvent evt)
dataReceived in interface com.lotus.sametime.im.ImListenerpublic void closeConversation()
throws IMException
IMMessageHandlercloseConversation in interface IMMessageHandlerIMException - if the conversation was not openedpublic void imClosed(com.lotus.sametime.im.ImEvent evt)
imClosed in interface com.lotus.sametime.im.ImListenerpublic boolean isOpened()
IMMessageHandlerisOpened in interface IMMessageHandler