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

UriMatchers

class UriMatchers


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

Summary

Public constructors

Public functions

java-static Matcher<Uri>!
hasHost(host: String!)
java-static Matcher<Uri>!
hasHost(hostMatcher: Matcher<String>!)
java-static Matcher<Uri>!
hasParamWithName(paramName: String!)
java-static Matcher<Uri>!
hasParamWithName(paramName: Matcher<String>!)
java-static Matcher<Uri>!
hasParamWithValue(paramName: String!, paramVal: String!)
java-static Matcher<Uri>!
hasParamWithValue(paramName: Matcher<String>!, paramVal: Matcher<String>!)
java-static Matcher<Uri>!
hasPath(pathName: String!)
java-static Matcher<Uri>!
hasPath(pathName: Matcher<String>!)
java-static Matcher<Uri>!
hasScheme(scheme: String!)
java-static Matcher<Uri>!
hasScheme(schemeMatcher: Matcher<String>!)
java-static Matcher<Uri>!
hasSchemeSpecificPart(scheme: String!, schemeSpecificPart: String!)
java-static Matcher<Uri>!
hasSchemeSpecificPart(
    schemeMatcher: Matcher<String>!,
    schemeSpecificPartMatcher: Matcher<String>!
)

Public constructors

UriMatchers

UriMatchers()

Public functions

hasHost

java-static fun hasHost(host: String!): Matcher<Uri>!

hasHost

java-static fun hasHost(hostMatcher: Matcher<String>!): Matcher<Uri>!

hasParamWithName

java-static fun hasParamWithName(paramName: String!): Matcher<Uri>!

hasParamWithName

java-static fun hasParamWithName(paramName: Matcher<String>!): Matcher<Uri>!

hasParamWithValue

java-static fun hasParamWithValue(paramName: String!, paramVal: String!): Matcher<Uri>!

hasParamWithValue

java-static fun hasParamWithValue(paramName: Matcher<String>!, paramVal: Matcher<String>!): Matcher<Uri>!

hasPath

java-static fun hasPath(pathName: String!): Matcher<Uri>!

hasPath

java-static fun hasPath(pathName: Matcher<String>!): Matcher<Uri>!

hasScheme

java-static fun hasScheme(scheme: String!): Matcher<Uri>!

hasScheme

java-static fun hasScheme(schemeMatcher: Matcher<String>!): Matcher<Uri>!

hasSchemeSpecificPart

java-static fun hasSchemeSpecificPart(scheme: String!, schemeSpecificPart: String!): Matcher<Uri>!

hasSchemeSpecificPart

java-static fun hasSchemeSpecificPart(
    schemeMatcher: Matcher<String>!,
    schemeSpecificPartMatcher: Matcher<String>!
): Matcher<Uri>!