talx x1.0.5

talx.model.filters
Interface ReceiverFilter

All Superinterfaces:
java.util.EventListener, ReceiverFilterListener, TALFeature
All Known Implementing Classes:
ReceiverFilterAdapter

public interface ReceiverFilter
extends ReceiverFilterListener, TALFeature

Represents a filter in the incoming filter stack. In general, incoming filters can be separated into passive and active filters.
Active filters contain some mechanism for getting messages from some internet source. These filters must have some thread that passes new messages through the incoming filter stack. In general, active filters should not assume that they are always at the top of the stack. That is, they must implement the same pass-through behavior as passive filters. Also, it is very important that active filters not return from the release method until their message deliver thread has shut down.
Passive filters are filters in the stack that just decide whether or not to filter a message. That is, when the filter receives a message through newMailArrived, it decides whether to rebroadcast the message through the newMailArrived method of its listeners or to broadcast to filterActivated. Any message that arrives through the filterActivated method should be re-broadcast to the listener's filterActivated method. Most passive ReceiverFilters just extend the ReceiverFilterAdapter class and implement the filterMessage method


Method Summary
 void addFilterListener(ReceiverFilterListener l)
           
 
Methods inherited from interface talx.model.filters.ReceiverFilterListener
filterActivated, newMailArrived
 
Methods inherited from interface talx.feature.TALFeature
release
 

Method Detail

addFilterListener

public void addFilterListener(ReceiverFilterListener l)

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.