Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Interface EventFilter


public interface EventFilter

An event filter that decides whether an instant message event should be filtered or not. For instance, maybe some type of received messages should not be shown in the chat windows. In such cases implementations of this filter would block this message before it is delivered to other IM listeners.

Note that in order to be able to use this Filter, protocols should implement OperationSetMessageFiltering.

Author:
Keio Kraaner

Method Summary
 boolean filterEvent(EventObject msg)
          Checks if an event should be filtered out or processed.
 

Method Detail

filterEvent

boolean filterEvent(EventObject msg)
Checks if an event should be filtered out or processed.

Parameters:
msg - The event that should be checked
Returns:
true if the event was filtered out, otherwise false.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.