UriMatchers

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>
hasParamWithName(Matcher<String> paramName)
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 UriMatchers()

Public methods

hasHost

public static Matcher<Uri> hasHost(String host)

hasHost

public static Matcher<Uri> hasHost(Matcher<String> hostMatcher)

hasParamWithName

public static Matcher<Uri> hasParamWithName(String paramName)

hasParamWithName

public static Matcher<Uri> hasParamWithName(Matcher<String> paramName)

hasParamWithValue

public static Matcher<Uri> hasParamWithValue(String paramName, String paramVal)

hasParamWithValue

public static Matcher<Uri> hasParamWithValue(Matcher<String> paramName, Matcher<String> paramVal)

hasPath

public static Matcher<Uri> hasPath(String pathName)

hasPath

public static Matcher<Uri> hasPath(Matcher<String> pathName)

hasScheme

public static Matcher<Uri> hasScheme(String scheme)

hasScheme

public static Matcher<Uri> hasScheme(Matcher<String> schemeMatcher)

hasSchemeSpecificPart

public static Matcher<Uri> hasSchemeSpecificPart(String scheme, String schemeSpecificPart)

hasSchemeSpecificPart

public static Matcher<Uri> hasSchemeSpecificPart(
    Matcher<String> schemeMatcher,
    Matcher<String> schemeSpecificPartMatcher
)