-
public final class UriBuilderClass for building Uri matchers
-
-
Constructor Summary
Constructors Constructor Description UriBuilder()
-
Method Summary
Modifier and Type Method Description final UnithasHost(String host)Matches uri with given host final UnithasHost(Matcher<String> host)Matches uri with given host final UnithasPath(String path)Matches uri with given path final UnithasPath(Matcher<String> path)Matches uri with given path final UnithasScheme(String scheme)Matches uri with given scheme final UnithasScheme(Matcher<String> scheme)Matches uri with given scheme final UnithasParamWithName(String name)Matches uri with given parameter name final UnithasParamWithName(Matcher<String> name)Matches uri with given parameter name final UnithasParamWithValue(String name, String value)Matches uri with given parameter name and value final UnithasParamWithValue(Matcher<String> name, Matcher<String> value)Matches uri with given parameter name and value final UnithasSchemeSpecificPart(String scheme, String part)Matches uri with given scheme and specific part final UnithasSchemeSpecificPart(Matcher<String> scheme, Matcher<String> part)Matches uri with given scheme and specific part final Matcher<Uri>getMatcher()-
-
Method Detail
-
hasHost
final Unit hasHost(String host)
Matches uri with given host
- Parameters:
host- Host to be matched
-
hasHost
final Unit hasHost(Matcher<String> host)
Matches uri with given host
- Parameters:
host- Matcher for a host
-
hasPath
final Unit hasPath(String path)
Matches uri with given path
- Parameters:
path- Path to be matched
-
hasPath
final Unit hasPath(Matcher<String> path)
Matches uri with given path
- Parameters:
path- Matcher for a path
-
hasScheme
final Unit hasScheme(String scheme)
Matches uri with given scheme
- Parameters:
scheme- Scheme to be matched
-
hasScheme
final Unit hasScheme(Matcher<String> scheme)
Matches uri with given scheme
- Parameters:
scheme- Matcher for a scheme
-
hasParamWithName
final Unit hasParamWithName(String name)
Matches uri with given parameter name
- Parameters:
name- Parameter name to be matched
-
hasParamWithName
final Unit hasParamWithName(Matcher<String> name)
Matches uri with given parameter name
- Parameters:
name- Matcher for a parameter name
-
hasParamWithValue
final Unit hasParamWithValue(String name, String value)
Matches uri with given parameter name and value
- Parameters:
name- Parameter name to be matchedvalue- Parameter value to be matched
-
hasParamWithValue
final Unit hasParamWithValue(Matcher<String> name, Matcher<String> value)
Matches uri with given parameter name and value
- Parameters:
name- Matcher for a parameter namevalue- Matcher for a paratemer value
-
hasSchemeSpecificPart
final Unit hasSchemeSpecificPart(String scheme, String part)
Matches uri with given scheme and specific part
- Parameters:
scheme- Scheme to be matchedpart- Specific part to be matched
-
hasSchemeSpecificPart
final Unit hasSchemeSpecificPart(Matcher<String> scheme, Matcher<String> part)
Matches uri with given scheme and specific part
- Parameters:
scheme- Matcher for a schemepart- Matcher for a specific part
-
getMatcher
final Matcher<Uri> getMatcher()
-
-
-
-