public class FullTextMatcher extends SimpleTextMatcher
The text comparison is case insensitive but assumes only characters in the US-ASCII charset are being matched.
IHeaderMatcher.Builder
Constructor and Description |
---|
FullTextMatcher(String simpleText)
Constructs the full text matcher with a unique random id and the specified
text to match.
|
FullTextMatcher(String id,
String simpleText)
Constructs the full text matcher for the specified text.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(IHeaders headers)
Attempts to match text in the IHeaders instance.
|
static String |
prune(String text)
Removes everything except letter or digit from text.
|
getSimpleText
getId, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, reset
public FullTextMatcher(String simpleText)
simpleText
- the text to matchpublic static String prune(String text)
text
- The text to remove extra chars from.public boolean matches(IHeaders headers)
IHeaderMatcher
matches
in interface IHeaderMatcher
matches
in class SimpleTextMatcher
headers
- the representations of the headers to checktrue
if the matcher matches the text, false
otherwise.Copyright © 2006–2024 Apache Software Foundation. All rights reserved.