@CheckReturnValue
public final class UriMatchers


A collection of matchers for Uris, which can match Uris on their properties (host, path, ...).

Summary

Public methods

static Matcher<Uri>
hasHost(Matcher<String> hostMatcher)
static Matcher<Uri>
static Matcher<Uri>
static Matcher<Uri>
static Matcher<Uri>
hasParamWithValue(Matcher<String> paramName, Matcher<String> paramVal)
static Matcher<Uri>
hasParamWithValue(String paramName, String paramVal)
static Matcher<Uri>
hasPath(Matcher<String> pathName)
static Matcher<Uri>
hasPath(String pathName)
static Matcher<Uri>
hasScheme(Matcher<String> schemeMatcher)
static Matcher<Uri>
hasScheme(String scheme)
static Matcher<Uri>
hasSchemeSpecificPart(
    Matcher<String> schemeMatcher,
    Matcher<String> schemeSpecificPartMatcher
)
static Matcher<Uri>
hasSchemeSpecificPart(String scheme, String schemeSpecificPart)

Public methods

hasHost

public static Matcher<UrihasHost(Matcher<String> hostMatcher)

hasHost

public static Matcher<UrihasHost(String host)

hasParamWithName

public static Matcher<UrihasParamWithName(Matcher<String> paramName)

hasParamWithName

public static Matcher<UrihasParamWithName(String paramName)

hasParamWithValue

public static Matcher<UrihasParamWithValue(Matcher<String> paramName, Matcher<String> paramVal)

hasParamWithValue

public static Matcher<UrihasParamWithValue(String paramName, String paramVal)

hasPath

public static Matcher<UrihasPath(Matcher<String> pathName)

hasPath

public static Matcher<UrihasPath(String pathName)

hasScheme

public static Matcher<UrihasScheme(Matcher<String> schemeMatcher)

hasScheme

public static Matcher<UrihasScheme(String scheme)

hasSchemeSpecificPart

public static Matcher<UrihasSchemeSpecificPart(
    Matcher<String> schemeMatcher,
    Matcher<String> schemeSpecificPartMatcher
)

hasSchemeSpecificPart

public static Matcher<UrihasSchemeSpecificPart(String scheme, String schemeSpecificPart)