public class EMTestUtils extends Object
| Constructor and Description |
|---|
EMTestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValidURIorEmpty(String uri) |
static String |
resolveLocation(String locationHeader,
String expectedTemplate) |
public static String resolveLocation(String locationHeader, String expectedTemplate)
locationHeader - a URI-reference, coming from a "location" header. See RFC 7231.
Note: it can be a relative referenceexpectedTemplate - a full URI of the target resource, but with some path elements
that might (or might not) be unresolved. If locationHeader is not
empty, it will replace the beginning of this template.public static boolean isValidURIorEmpty(String uri)
uri - a string representing a URICopyright © 2016–2020. All rights reserved.