hudson.plugins.jabber.im.transport
Class JabberMultiUserChat
java.lang.Object
hudson.plugins.jabber.im.transport.JabberMultiUserChat
- All Implemented Interfaces:
- hudson.plugins.im.IMChat
public class JabberMultiUserChat
- extends Object
- implements hudson.plugins.im.IMChat
Handle for a multi-user chat (aka. conference room) in XMPP/Jabber.
- Author:
- kutzi
Constructor Summary |
JabberMultiUserChat(org.jivesoftware.smackx.muc.MultiUserChat chat,
hudson.plugins.jabber.im.transport.JabberIMConnection connection,
boolean commandsAccepted)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JabberMultiUserChat
public JabberMultiUserChat(org.jivesoftware.smackx.muc.MultiUserChat chat,
hudson.plugins.jabber.im.transport.JabberIMConnection connection,
boolean commandsAccepted)
sendMessage
public void sendMessage(String msg)
throws hudson.plugins.im.IMException
- Specified by:
sendMessage
in interface hudson.plugins.im.IMChat
- Throws:
hudson.plugins.im.IMException
getNickName
public String getNickName(String sender)
- Returns the 'resource' part of the sender id which is the nickname
of the sender in this room.
- Specified by:
getNickName
in interface hudson.plugins.im.IMChat
getIMId
public String getIMId(String senderId)
- Specified by:
getIMId
in interface hudson.plugins.im.IMChat
addMessageListener
public void addMessageListener(hudson.plugins.im.IMMessageListener listener)
- Specified by:
addMessageListener
in interface hudson.plugins.im.IMChat
removeMessageListener
public void removeMessageListener(hudson.plugins.im.IMMessageListener listener)
- Specified by:
removeMessageListener
in interface hudson.plugins.im.IMChat
isMultiUserChat
public boolean isMultiUserChat()
- Specified by:
isMultiUserChat
in interface hudson.plugins.im.IMChat
isCommandsAccepted
public boolean isCommandsAccepted()
- Specified by:
isCommandsAccepted
in interface hudson.plugins.im.IMChat
Copyright © 2004-2012. All Rights Reserved.