org.eclipse.ecf.example.clients.applications
Class ChatSORobotApplication

java.lang.Object
  extended by org.eclipse.ecf.example.clients.applications.ChatSORobotApplication
All Implemented Interfaces:
IMessageReceiver, IPresenceListener, org.eclipse.equinox.app.IApplication

public class ChatSORobotApplication
extends java.lang.Object
implements org.eclipse.equinox.app.IApplication, IMessageReceiver, IPresenceListener


Field Summary
 
Fields inherited from interface org.eclipse.equinox.app.IApplication
EXIT_OK, EXIT_RELAUNCH, EXIT_RESTART
 
Constructor Summary
ChatSORobotApplication()
           
 
Method Summary
 void handleMessage(IChatMessage chatMessage)
           
 void handlePresence(ID fromID, IPresence presence)
          Notification that a presence update has been received
 java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatSORobotApplication

public ChatSORobotApplication()
Method Detail

start

public java.lang.Object start(org.eclipse.equinox.app.IApplicationContext context)
                       throws java.lang.Exception
Specified by:
start in interface org.eclipse.equinox.app.IApplication
Throws:
java.lang.Exception

stop

public void stop()
Specified by:
stop in interface org.eclipse.equinox.app.IApplication

handleMessage

public void handleMessage(IChatMessage chatMessage)
Specified by:
handleMessage in interface IMessageReceiver

handlePresence

public void handlePresence(ID fromID,
                           IPresence presence)
Description copied from interface: IPresenceListener
Notification that a presence update has been received

Specified by:
handlePresence in interface IPresenceListener
Parameters:
fromID - the ID of the sender of the presence update. Will not be null.
presence - the presence information for the sender. Will not be null.
Since:
2.0