Class JabberMultiUserChat
- java.lang.Object
-
- hudson.plugins.jabber.im.transport.JabberMultiUserChat
-
- All Implemented Interfaces:
hudson.plugins.im.IMChat
public class JabberMultiUserChat extends java.lang.Object implements hudson.plugins.im.IMChat
Handle for a multi-user chat (aka. conference room) in XMPP/Jabber.
-
-
Constructor Summary
Constructors Constructor Description JabberMultiUserChat(org.jivesoftware.smackx.muc.MultiUserChat chat, hudson.plugins.jabber.im.transport.JabberIMConnection connection, boolean commandsAccepted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMessageListener(hudson.plugins.im.IMMessageListener listener)
java.lang.String
getIMId(java.lang.String senderId)
java.lang.String
getNickName(java.lang.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(java.lang.String msg)
-
-
-
Method Detail
-
sendMessage
public void sendMessage(java.lang.String msg) throws hudson.plugins.im.IMException
- Specified by:
sendMessage
in interfacehudson.plugins.im.IMChat
- Throws:
hudson.plugins.im.IMException
-
getNickName
public java.lang.String getNickName(java.lang.String sender)
Returns the 'resource' part of the sender id which is the nickname of the sender in this room.- Specified by:
getNickName
in interfacehudson.plugins.im.IMChat
-
getIMId
public java.lang.String getIMId(java.lang.String senderId)
- Specified by:
getIMId
in interfacehudson.plugins.im.IMChat
-
addMessageListener
public void addMessageListener(hudson.plugins.im.IMMessageListener listener)
- Specified by:
addMessageListener
in interfacehudson.plugins.im.IMChat
-
removeMessageListener
public void removeMessageListener(hudson.plugins.im.IMMessageListener listener)
- Specified by:
removeMessageListener
in interfacehudson.plugins.im.IMChat
-
isMultiUserChat
public boolean isMultiUserChat()
- Specified by:
isMultiUserChat
in interfacehudson.plugins.im.IMChat
-
isCommandsAccepted
public boolean isCommandsAccepted()
- Specified by:
isCommandsAccepted
in interfacehudson.plugins.im.IMChat
-
-