<!ELEMENT extension (handler)+>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT handler EMPTY>
<!ATTLIST handler
chatRoomRobotId CDATA #REQUIRED
filterExpression CDATA #IMPLIED
class CDATA #REQUIRED>
The chat room message handler
<extension point="org.eclipse.ecf.presence.bot.chatRoomMessageHandler"> <handler chatRoomRobotId="org.eclipse.ecf.presence.bot.defaultbot" class="org.eclipse.ecf.presence.bot.DefaultChatRoomMessageHandler"> </handler> </extension>Note that the given chatroomrobotid=org.eclipse.ecf.presence.bot.defaultbot must be previously defined via the chatroomrobot extension point. Here is an example:
<extension point="org.eclipse.ecf.presence.bot.chatRoomRobot"> <chatRoomRobot chat chatRoom="#eclipse-ecf" connectId="irc://slewis2_@irc.freenode.net" containerFactoryName="ecf.irc.irclib" id="org.eclipse.ecf.presence.bot.defaultbot"> </chatRoomRobot> </extension>
Copyright (c) 2007 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html