javax.mail.search
Class HeaderTerm
- Serializable
public final class HeaderTerm
A case-insensitive string comparison of message header values.
Version:
- Chris Burdess
HeaderTerm(String headerName, String pattern) - Constructor.
|
boolean | equals(Object other)
|
String | getHeaderName() - Returns the name of the header to compare with.
|
int | hashCode()
|
boolean | match(Message msg) - Returns true if the header in the specified message matches the pattern
specified in this term.
|
headerName
protected String headerName
The header name.
HeaderTerm
public HeaderTerm(String headerName,
String pattern)
Constructor.
headerName
- the header namepattern
- the pattern to search for
equals
public boolean equals(Object other)
- equals in interface StringTerm
getHeaderName
public String getHeaderName()
Returns the name of the header to compare with.
hashCode
public int hashCode()
- hashCode in interface StringTerm
match
public boolean match(Message msg)
Returns true if the header in the specified message matches the pattern
specified in this term.
- match in interface SearchTerm
© Copyright 2003, 2004
The Free Software Foundation, All rights reserved