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

java.lang.Object
  extended by org.eclipse.ecf.presence.bot.impl.EmptyIMMessageHandler
All Implemented Interfaces:
IContainerAdvisor, IIMMessageHandler

public class EmptyIMMessageHandler
extends java.lang.Object
implements IIMMessageHandler

Default im message handler that does nothing in response to notifications.


Constructor Summary
EmptyIMMessageHandler()
           
 
Method Summary
 void handleIMMessage(IChatMessage message)
          This method is called when a IChatMessage is received.
 void init(IIMBotEntry robot)
          Initialize robot with robot entry data.
 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

EmptyIMMessageHandler

public EmptyIMMessageHandler()
Method Detail

handleIMMessage

public void handleIMMessage(IChatMessage message)
Description copied from interface: IIMMessageHandler
This method is called when a IChatMessage is received.

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

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(IIMBotEntry robot)
Description copied from interface: IIMMessageHandler
Initialize robot with robot entry data.

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