Package 

Class UriBuilder


  • 
    public final class UriBuilder
    
                        

    Class for building Uri matchers

    • Constructor Detail

      • UriBuilder

        UriBuilder()
    • 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 matched
        value - 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 name
        value - 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 matched
        part - 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 scheme
        part - Matcher for a specific part