public final class HeaderTerm extends StringTerm
| Modifier and Type | Field and Description |
|---|---|
protected String |
headerName
The header name.
|
ignoreCase, pattern| Constructor and Description |
|---|
HeaderTerm(String headerName,
String pattern)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getIgnoreCase, getPattern, matchprotected String headerName
public String getHeaderName()
public boolean match(Message msg)
match in class SearchTermpublic boolean equals(Object other)
equals in class StringTermpublic int hashCode()
hashCode in class StringTerm© Copyright 2003, 2004 The Free Software Foundation, All rights reserved