talx x1.0.5

talx.model.filters
Class SpyFilter

java.lang.Object
  extended bytalx.model.filters.ReceiverFilterAdapter
      extended bytalx.model.filters.SpyFilter
All Implemented Interfaces:
java.util.EventListener, ReceiverFilter, ReceiverFilterListener, TALFeature

public class SpyFilter
extends ReceiverFilterAdapter

Searches incoming messages for test commands and game moves.


Constructor Summary
SpyFilter(Settings settings)
           
 
Method Summary
protected  boolean filterMessage(javax.mail.internet.MimeMessage msg)
          This method is called by NewMailArrived and OldMailArrived to decide whether to pass the message along.
 
Methods inherited from class talx.model.filters.ReceiverFilterAdapter
addFilterListener, filterActivated, fireFilterActivated, fireNewMailEvent, newMailArrived, release, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpyFilter

public SpyFilter(Settings settings)
Method Detail

filterMessage

protected boolean filterMessage(javax.mail.internet.MimeMessage msg)
Description copied from class: ReceiverFilterAdapter
This method is called by NewMailArrived and OldMailArrived to decide whether to pass the message along. Subclasses may wish to have side effects occur in this method as well as the return value.

Specified by:
filterMessage in class ReceiverFilterAdapter
Parameters:
msg - The message to be filtered by this method.
Returns:
true if the message should be passed along, false if the message should be dropped.

talx x1.0.5

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