hudson.plugins.jabber.im.transport
Class JabberChat

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

public class JabberChat
extends java.lang.Object
implements IMChat

1-on-1 Jabber chat.

Author:
kutzi

Constructor Summary
JabberChat(org.jivesoftware.smack.Chat chat)
           
 
Method Summary
 void addMessageListener(IMMessageListener listener)
           
 java.lang.String getNickName(java.lang.String sender)
          Translates the sender into a nickname which can be used to address the sender.
 boolean isMultiUserChat()
           
 void sendMessage(java.lang.String msg)
          Sends a message to the chat.
 
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)
Method Detail

sendMessage

public void sendMessage(java.lang.String msg)
                 throws IMException
Description copied from interface: IMChat
Sends a message to the chat.

Specified by:
sendMessage in interface IMChat
Throws:
IMException - If the message couldn't be delivered for any reason.

getNickName

public java.lang.String getNickName(java.lang.String sender)
Description copied from interface: IMChat
Translates the sender into a nickname which can be used to address the sender.

Specified by:
getNickName in interface IMChat

addMessageListener

public void addMessageListener(IMMessageListener listener)
Specified by:
addMessageListener in interface IMChat

isMultiUserChat

public boolean isMultiUserChat()
Specified by:
isMultiUserChat in interface IMChat


Copyright © 2009. All Rights Reserved.