javax.mail.search
Class HeaderTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by javax.mail.search.StringTerm
          extended by javax.mail.search.HeaderTerm
All Implemented Interfaces:
Serializable

public final class HeaderTerm
extends StringTerm

Version:
$Rev: 421852 $ $Date: 2006-07-14 03:02:19 -0700 (Fri, 14 Jul 2006) $
See Also:
Serialized Form

Field Summary
protected  String headerName
           
 
Fields inherited from class javax.mail.search.StringTerm
ignoreCase, pattern
 
Constructor Summary
HeaderTerm(String header, String pattern)
           
 
Method Summary
 boolean equals(Object other)
           
 String getHeaderName()
           
 int hashCode()
           
 boolean match(Message message)
          Checks a matching criteria defined by the concrete subclass of this Term.
 
Methods inherited from class javax.mail.search.StringTerm
getIgnoreCase, getPattern, match
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

headerName

protected String headerName
Constructor Detail

HeaderTerm

public HeaderTerm(String header,
                  String pattern)
Method Detail

getHeaderName

public String getHeaderName()

match

public boolean match(Message message)
Description copied from class: SearchTerm
Checks a matching criteria defined by the concrete subclass of this Term.

Specified by:
match in class SearchTerm
Parameters:
message - the message to apply the matching criteria to
Returns:
true if the matching criteria is met

equals

public boolean equals(Object other)
Overrides:
equals in class StringTerm

hashCode

public int hashCode()
Overrides:
hashCode in class StringTerm


Copyright © 2006 Apache Software Foundation. All Rights Reserved.