public class OrMatcher extends AbstractMatcherContainer
OR
across all the contained matchers.IHeaderMatcher.Builder
Constructor and Description |
---|
OrMatcher(Collection<? extends IHeaderMatcher> enclosed,
String resource)
Constructs the matcher from the enclosed matchers.
|
OrMatcher(String id,
Collection<? extends IHeaderMatcher> enclosed,
String resource)
Constructs the matcher with the specified id from the enclosed matchers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(IHeaders headers)
Attempts to match text in the IHeaders instance.
|
getEnclosed, getResource, reset
getId, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription
public OrMatcher(Collection<? extends IHeaderMatcher> enclosed, String resource)
enclosed
- the enclosed matchers.public OrMatcher(String id, Collection<? extends IHeaderMatcher> enclosed, String resource)
id
- the id to use.enclosed
- the enclosed matchers.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.