public class JabberMultiUserChat extends Object implements hudson.plugins.im.IMChat
Constructor and Description |
---|
JabberMultiUserChat(org.jivesoftware.smackx.muc.MultiUserChat chat,
hudson.plugins.jabber.im.transport.JabberIMConnection connection,
boolean commandsAccepted) |
Modifier and Type | Method and Description |
---|---|
void |
addMessageListener(hudson.plugins.im.IMMessageListener listener) |
String |
getIMId(String senderId) |
String |
getNickName(String sender)
Returns the 'resource' part of the sender id which is the nickname
of the sender in this room.
|
boolean |
isCommandsAccepted() |
boolean |
isMultiUserChat() |
void |
removeMessageListener(hudson.plugins.im.IMMessageListener listener) |
void |
sendMessage(String msg) |
public JabberMultiUserChat(org.jivesoftware.smackx.muc.MultiUserChat chat, hudson.plugins.jabber.im.transport.JabberIMConnection connection, boolean commandsAccepted)
public void sendMessage(String msg) throws hudson.plugins.im.IMException
sendMessage
in interface hudson.plugins.im.IMChat
hudson.plugins.im.IMException
public String getNickName(String sender)
getNickName
in interface hudson.plugins.im.IMChat
public String getIMId(String senderId)
getIMId
in interface hudson.plugins.im.IMChat
public void addMessageListener(hudson.plugins.im.IMMessageListener listener)
addMessageListener
in interface hudson.plugins.im.IMChat
public void removeMessageListener(hudson.plugins.im.IMMessageListener listener)
removeMessageListener
in interface hudson.plugins.im.IMChat
public boolean isMultiUserChat()
isMultiUserChat
in interface hudson.plugins.im.IMChat
public boolean isCommandsAccepted()
isCommandsAccepted
in interface hudson.plugins.im.IMChat
Copyright © 2004–2014. All rights reserved.