public final class HeaderTerm extends StringTerm
ignoreCase, pattern
Constructor and Description |
---|
HeaderTerm(java.lang.String headerName,
java.lang.String pattern)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.lang.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, match
public HeaderTerm(java.lang.String headerName, java.lang.String pattern)
headerName
- the header namepattern
- the pattern to search forpublic java.lang.String getHeaderName()
public boolean match(Message msg)
match
in class SearchTerm
public boolean equals(java.lang.Object other)
equals
in class StringTerm
public int hashCode()
hashCode
in class StringTerm