@Immutable @ThreadSafe public class WithoutHeaderRequestMatcher extends org.hamcrest.TypeSafeMatcher<HttpRequest>
Concurrency notes. This class is immutable and thread safe.
| Constructor and Description |
|---|
WithoutHeaderRequestMatcher(String headerName)
Creates new matcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(HttpRequest httpRequest,
org.hamcrest.Description description) |
void |
describeTo(org.hamcrest.Description description) |
boolean |
matchesSafely(HttpRequest httpRequest) |
public WithoutHeaderRequestMatcher(String headerName)
headerName - Header name. If a request has a header with this name,
then it does not match.NullPointerException - headerName is null.IllegalArgumentException - headerName is empty or blank.public boolean matchesSafely(HttpRequest httpRequest)
matchesSafely in class org.hamcrest.TypeSafeMatcher<HttpRequest>public void describeTo(org.hamcrest.Description description)
public void describeMismatchSafely(HttpRequest httpRequest, org.hamcrest.Description description)
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<HttpRequest>Copyright © 2016. All rights reserved.