|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objecttalx.model.filters.ReceiverFilterAdapter
Adapter class for objects in the incoming filter stack. Subclasses will drop or keep messages based on the return value of filterMessage.
| Constructor Summary | |
ReceiverFilterAdapter()
|
|
| Method Summary | |
void |
addFilterListener(ReceiverFilterListener l)
|
void |
filterActivated(TALMailEvent ev)
This method is called when the previous filter dropped a message. |
protected abstract boolean |
filterMessage(javax.mail.internet.MimeMessage msg)
This method is called by NewMailArrived and OldMailArrived to decide whether to pass the message along. |
protected void |
fireFilterActivated(TALMailEvent ev)
This method is called when we wish to send out a event that signifies that we have filtered an email message. |
protected void |
fireNewMailEvent(TALMailEvent ev)
This method is called when we wish to send out a event that signifies that a new VALID mail has arrived to this email client. |
void |
newMailArrived(TALMailEvent ev)
This method is called when mail arrives that has never been in the system before. |
void |
release()
Destroys the listeners list. |
java.lang.String |
toString()
Returns the classname of this filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ReceiverFilterAdapter()
| Method Detail |
public void filterActivated(TALMailEvent ev)
filterActivated in interface ReceiverFilterListenerpublic void newMailArrived(TALMailEvent ev)
newMailArrived in interface ReceiverFilterListenerpublic void addFilterListener(ReceiverFilterListener l)
addFilterListener in interface ReceiverFilterprotected void fireNewMailEvent(TALMailEvent ev)
protected void fireFilterActivated(TALMailEvent ev)
protected abstract boolean filterMessage(javax.mail.internet.MimeMessage msg)
msg - The message to be filtered by this method.
public void release()
release in interface TALFeaturepublic java.lang.String toString()
|
talx x1.0.5 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.