public class SimpleTextMatcher extends AbstractHeaderMatcher
IHeaderMatcher.Builder
Constructor and Description |
---|
SimpleTextMatcher(String simpleText)
Constructs the simple text matcher for the simple string.
|
SimpleTextMatcher(String id,
String simpleText)
Constructs the simple text matcher for the simple string.
|
Modifier and Type | Method and Description |
---|---|
String |
getSimpleText() |
boolean |
matches(IHeaders headers)
Attempts to match text in the IHeaders instance.
|
getId, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, reset
public SimpleTextMatcher(String simpleText)
simpleText
- The pattern to match. Will only match a single line from
the input stream.public String getSimpleText()
public boolean matches(IHeaders headers)
IHeaderMatcher
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.