use of org.eclipse.ecf.internal.provider.xmpp.events.MessageEvent in project ecf by eclipse.
the class XMPPContainer method handleAsExtension.
protected boolean handleAsExtension(Packet packet) {
final Iterator i = packet.getExtensions().iterator();
for (; i.hasNext(); ) {
final Object extension = i.next();
if (extension instanceof XHTMLExtension) {
final XHTMLExtension xhtmlExtension = (XHTMLExtension) extension;
deliverEvent(new MessageEvent((Message) packet, xhtmlExtension.getBodies()));
return true;
}
if (packet instanceof Presence && extension instanceof MUCUser) {
return true;
}
}
return false;
}
Aggregations