public class HeaderMatchers extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ETAG_REGEX
Regular expression matching valid ETag values.
|
Constructor and Description |
---|
HeaderMatchers() |
Modifier and Type | Method and Description |
---|---|
static org.hamcrest.Matcher<String> |
headerNotPresent() |
static org.hamcrest.Matcher<String> |
headerPresent() |
static org.hamcrest.Matcher<String> |
isJsonLdCompatibleContentType()
Matcher testing a Content-Type response header's compatibility with
JSON-LD (expects application/ld+json or application/json).
|
static org.hamcrest.Matcher<String> |
isLink(String uri,
String rel) |
static org.hamcrest.Matcher<String> |
isTurtleCompatibleContentType()
Matcher testing a Content-Type response header's compatibility with
Turtle (expects text/turtle).
|
static org.hamcrest.Matcher<String> |
isValidEntityTag() |
public static final String ETAG_REGEX
public HeaderMatchers()
public static org.hamcrest.Matcher<String> headerPresent()
public static org.hamcrest.Matcher<String> headerNotPresent()
public static org.hamcrest.Matcher<String> isValidEntityTag()
public static org.hamcrest.Matcher<String> isJsonLdCompatibleContentType()
public static org.hamcrest.Matcher<String> isTurtleCompatibleContentType()
Copyright © 2014 World Wide Web Consortium (W3C). All rights reserved.