Interface PathBinderBuilder

    • Method Detail

      • tokenWithPattern

        PathBinderBuilder tokenWithPattern​(String token,
                                           String pattern)
        Add a regular expression parameterized named token to the path.
        Parameters:
        token - the name of the token
        pattern - the valid regex pattern
        Returns:
        this
      • optionalTokenWithPattern

        PathBinderBuilder optionalTokenWithPattern​(String token,
                                                   String pattern)
        Add a regular expression parameterized named optional token to the path.
        Parameters:
        token - the name of the optional token
        pattern - the valid regex pattern
        Returns:
        this
      • token

        PathBinderBuilder token​(String token)
        Add a token to the path.
        Parameters:
        token - the name of the token
        Returns:
        this
      • optionalToken

        PathBinderBuilder optionalToken​(String token)
        Add an optional token to the path.
        Parameters:
        token - the name of the optional token
        Returns:
        this
      • literalPattern

        PathBinderBuilder literalPattern​(String pattern)
        Add a regular expression parameterized literal element to the path.
        Parameters:
        pattern - the valid regex pattern
        Returns:
        this
      • literal

        PathBinderBuilder literal​(String literal)
        Add a literal to the path.
        Parameters:
        literal - the literal path component
        Returns:
        this
      • build

        PathBinder build​(boolean exhaustive)
        Generate a PathBinder from the contents of the builder.
        Parameters:
        exhaustive - whether this path should be an exact match
        Returns:
        a new PathBinder based on the state of this builder