javax.mail.search
Class HeaderTerm
- Serializable
public final class HeaderTerm
A case-insensitive string comparison of message header values.
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
getHeaderName
public String getHeaderName()
Returns the name of the header to compare with.
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