org.eclipse.ecf.presence.bot.impl
Class ChatRoomBot

java.lang.Object
  extended by org.eclipse.ecf.presence.bot.impl.ChatRoomBot
All Implemented Interfaces:
IIMMessageListener

public class ChatRoomBot
extends java.lang.Object
implements IIMMessageListener

Default chat room robot implementation class.


Field Summary
protected  IChatRoomBotEntry bot
           
protected  IContainer container
           
protected  IChatRoomContainer roomContainer
           
protected  ID roomID
           
protected  ID targetID
           
 
Constructor Summary
ChatRoomBot(IChatRoomBotEntry bot)
           
 
Method Summary
 void connect()
           
protected  void fireInitBot()
           
protected  void firePreConnect()
           
protected  void firePreRoomConnect()
           
 void handleMessageEvent(IIMMessageEvent event)
          Handle message event (reception of chat, typing, or object message).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bot

protected IChatRoomBotEntry bot

container

protected IContainer container

targetID

protected ID targetID

roomContainer

protected IChatRoomContainer roomContainer

roomID

protected ID roomID
Constructor Detail

ChatRoomBot

public ChatRoomBot(IChatRoomBotEntry bot)
Method Detail

fireInitBot

protected void fireInitBot()

firePreConnect

protected void firePreConnect()

firePreRoomConnect

protected void firePreRoomConnect()

connect

public void connect()
             throws ECFException
Throws:
ECFException

handleMessageEvent

public void handleMessageEvent(IIMMessageEvent event)
Description copied from interface: IIMMessageListener
Handle message event (reception of chat, typing, or object message).

Specified by:
handleMessageEvent in interface IIMMessageListener
Parameters:
event - the event instance to handle. Will not be null.