javax.mail.search
public final class HeaderTerm extends StringTerm
Version: 1.3
Field Summary | |
---|---|
protected String | headerName
The header name. |
Constructor Summary | |
---|---|
HeaderTerm(String headerName, String pattern)
Constructor. |
Method Summary | |
---|---|
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. |
Parameters: headerName the header name pattern the pattern to search for