|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IMChat
Abstraction of a chat.
| Method Summary | |
|---|---|
void |
addMessageListener(IMMessageListener listener)
Adds a new IMMessageListener to this chat. |
java.lang.String |
getIMId(java.lang.String senderId)
Translates the sender into a unique IM id. |
java.lang.String |
getNickName(java.lang.String senderId)
Translates the sender into a nickname which can be used to informally address the sender. |
boolean |
isMultiUserChat()
Returns true if the chat is a multi-user chat (a Jabber conference room, an IRC chatroom) as opposed to a single user chat (IRC private message exchange). |
void |
removeMessageListener(IMMessageListener listener)
Removes a IMMessageListener from this chat. |
void |
sendMessage(java.lang.String message)
Sends a message to the chat. |
| Method Detail |
|---|
void sendMessage(java.lang.String message)
throws IMException
IMException - If the message couldn't be delivered for any reason.java.lang.String getNickName(java.lang.String senderId)
senderId - the fully qualified IM id of the sender (e.g. for Jabber the user, the server domain and optional resource part)java.lang.String getIMId(java.lang.String senderId)
senderId -
boolean isMultiUserChat()
void addMessageListener(IMMessageListener listener)
IMMessageListener to this chat.
Note that certain protocols/APIs might not support this method
- in that case this method should do nothing.
void removeMessageListener(IMMessageListener listener)
IMMessageListener from this chat.
Note that certain protocols/APIs might not support this method
- in that case this method should do nothing.
Note also that Smack Jabber API (2.x) does not support this even
if one has added a message listener previously.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||