{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

UriMatchers

@CheckReturnValue public final class UriMatchers


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

Summary

Public constructors

Public methods

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

Public constructors

UriMatchers

public final UriMatchers()

Public methods

hasHost

public static Matcher<UrihasHost(String host)

hasHost

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

hasParamWithName

public static Matcher<UrihasParamWithName(String paramName)

hasParamWithName

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

hasParamWithValue

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

hasParamWithValue

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

hasPath

public static Matcher<UrihasPath(String pathName)

hasPath

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

hasScheme

public static Matcher<UrihasScheme(String scheme)

hasScheme

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

hasSchemeSpecificPart

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

hasSchemeSpecificPart

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