hudson.plugins.jabber.im.transport
Class JabberChat

java.lang.Object
  extended by hudson.plugins.jabber.im.transport.JabberChat
All Implemented Interfaces:
hudson.plugins.im.IMChat

public class JabberChat
extends Object
implements hudson.plugins.im.IMChat

1-on-1 Jabber chat.

Author:
kutzi

Constructor Summary
JabberChat(org.jivesoftware.smack.Chat chat, hudson.plugins.jabber.im.transport.JabberIMConnection connection)
           
 
Method Summary
 void addMessageListener(hudson.plugins.im.IMMessageListener listener)
           
 String getIMId(String senderId)
           
 String getNickName(String sender)
           
 boolean isCommandsAccepted()
           
 boolean isMultiUserChat()
           
 void removeMessageListener(hudson.plugins.im.IMMessageListener listener)
           
 void sendMessage(String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JabberChat

public JabberChat(org.jivesoftware.smack.Chat chat,
                  hudson.plugins.jabber.im.transport.JabberIMConnection connection)
Method Detail

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)
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.