Home » apache-tomcat-6.0.26-src » javax » mail » search » [javadoc | source]
javax.mail.search
public final class: HeaderTerm [javadoc | source]
java.lang.Object
   javax.mail.search.SearchTerm
      javax.mail.search.StringTerm
         javax.mail.search.HeaderTerm

All Implemented Interfaces:
    Serializable

This class implements comparisons for Message headers. The comparison is case-insensitive.
Field Summary
protected  String headerName    The name of the header.
    serial:
 
Fields inherited from javax.mail.search.StringTerm:
pattern,  ignoreCase
Constructor:
 public HeaderTerm(String headerName,
    String pattern) 
    Constructor.
    Parameters:
    headerName - The name of the header
    pattern - The pattern to search for
Method from javax.mail.search.HeaderTerm Summary:
equals,   getHeaderName,   hashCode,   match
Methods from javax.mail.search.StringTerm:
equals,   getIgnoreCase,   getPattern,   hashCode,   match
Methods from javax.mail.search.SearchTerm:
match
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.mail.search.HeaderTerm Detail:
 public boolean equals(Object obj) 
    Equality comparison.
 public String getHeaderName() 
    Return the name of the header to compare with.
 public int hashCode() 
    Compute a hashCode for this object.
 public boolean match(Message msg) 
    The header match method.