public final class HeaderTerm extends StringTerm
Constructor and Description |
---|
HeaderTerm(java.lang.String headerName,
java.lang.String pattern)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Equality comparison.
|
java.lang.String |
getHeaderName()
Return the name of the header to compare with.
|
int |
hashCode()
Compute a hashCode for this object.
|
boolean |
match(Message msg)
The header match method.
|
getIgnoreCase, getPattern
public HeaderTerm(java.lang.String headerName, java.lang.String pattern)
headerName
- The name of the headerpattern
- The pattern to search forpublic java.lang.String getHeaderName()
public boolean match(Message msg)
match
in class SearchTerm
msg
- The match is applied to this Message's headerpublic boolean equals(java.lang.Object obj)
equals
in class StringTerm
public int hashCode()
hashCode
in class StringTerm
Copyright © 2010 - 2020 Adobe. All Rights Reserved