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

java.lang.Object
  extended by org.eclipse.ecf.presence.bot.impl.EmptyChatRoomMessageHandler
All Implemented Interfaces:
IChatRoomContainerAdvisor, IChatRoomMessageHandler, IContainerAdvisor

public class EmptyChatRoomMessageHandler
extends java.lang.Object
implements IChatRoomMessageHandler

Default chat room message handler that does nothing in response to notifications.


Constructor Summary
EmptyChatRoomMessageHandler()
           
 
Method Summary
 void handleRoomMessage(IChatRoomMessage message)
          This method is called when a IChatRoomMessage is received.
 void init(IChatRoomBotEntry robot)
          Initialize robot with robot entry data.
 void preChatRoomConnect(IChatRoomContainer roomContainer, ID roomID)
          This method will be called prior to connecting to the roomContainer.
 void preContainerConnect(IContainer container, ID targetID)
          This method will be called prior to calling the container's IContainer.connect(ID, org.eclipse.ecf.core.security.IConnectContext) method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyChatRoomMessageHandler

public EmptyChatRoomMessageHandler()
Method Detail

handleRoomMessage

public void handleRoomMessage(IChatRoomMessage message)
Description copied from interface: IChatRoomMessageHandler
This method is called when a IChatRoomMessage is received.

Specified by:
handleRoomMessage in interface IChatRoomMessageHandler
Parameters:
message - the IChatRoomMessage received. Will not be null. Implementers should not block the calling thread. Any methods on the given message parameter may be called.

preChatRoomConnect

public void preChatRoomConnect(IChatRoomContainer roomContainer,
                               ID roomID)
Description copied from interface: IChatRoomContainerAdvisor
This method will be called prior to connecting to the roomContainer. The given roomContainer and roomID will not be null.

Specified by:
preChatRoomConnect in interface IChatRoomContainerAdvisor
Parameters:
roomContainer - the IChatRoomContainer that will be connected to. Will not be null.
roomID - the ID of the room that will be connected to. Will not be null.

preContainerConnect

public void preContainerConnect(IContainer container,
                                ID targetID)
Description copied from interface: IContainerAdvisor
This method will be called prior to calling the container's IContainer.connect(ID, org.eclipse.ecf.core.security.IConnectContext) method.

Specified by:
preContainerConnect in interface IContainerAdvisor
Parameters:
container - the container instance created. Will not be null.
targetID - the target id instance to connect to. Will not be null.

init

public void init(IChatRoomBotEntry robot)
Description copied from interface: IChatRoomMessageHandler
Initialize robot with robot entry data.

Specified by:
init in interface IChatRoomMessageHandler
Parameters:
robot - the robot to initialize. Will not be null.