UriBuilder

public final class UriBuilder

Class for building Uri matchers

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
public final Matcher<Uri> getMatcher()
Link copied to clipboard
public final Unit hasHost(String host)
public final Unit hasHost(Matcher<String> host)

Matches uri with given host

Link copied to clipboard
public final Unit hasParamWithName(String name)
public final Unit hasParamWithName(Matcher<String> name)

Matches uri with given parameter name

Link copied to clipboard
public final Unit hasParamWithValue(String name, String value)
public final Unit hasParamWithValue(Matcher<String> name, Matcher<String> value)

Matches uri with given parameter name and value

Link copied to clipboard
public final Unit hasPath(String path)
public final Unit hasPath(Matcher<String> path)

Matches uri with given path

Link copied to clipboard
public final Unit hasScheme(String scheme)
public final Unit hasScheme(Matcher<String> scheme)

Matches uri with given scheme

Link copied to clipboard
public final Unit hasSchemeSpecificPart(String scheme, String part)
public final Unit hasSchemeSpecificPart(Matcher<String> scheme, Matcher<String> part)

Matches uri with given scheme and specific part