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 IMMessageHandler
IMException
public void removeListener(IMMessageListener messageListener)
removeListener
in interface IMMessageHandler
public void removeAllListeners()
removeAllListeners
in interface IMMessageHandler
public void imReceived(com.lotus.sametime.im.ImEvent evt)
imReceived
in interface com.lotus.sametime.im.ImServiceListener
public java.lang.String sendMessage(java.lang.String message) throws IMException
IMMessageHandler
sendMessage
in interface IMMessageHandler
IMException
- 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.ImListener
public void openImFailed(com.lotus.sametime.im.ImEvent evt)
openImFailed
in interface com.lotus.sametime.im.ImListener
public void textReceived(com.lotus.sametime.im.ImEvent evt)
textReceived
in interface com.lotus.sametime.im.ImListener
public void dataReceived(com.lotus.sametime.im.ImEvent evt)
dataReceived
in interface com.lotus.sametime.im.ImListener
public void closeConversation() throws IMException
IMMessageHandler
closeConversation
in interface IMMessageHandler
IMException
- if the conversation was not openedpublic void imClosed(com.lotus.sametime.im.ImEvent evt)
imClosed
in interface com.lotus.sametime.im.ImListener
public boolean isOpened()
IMMessageHandler
isOpened
in interface IMMessageHandler