Interface UrlPattern

    • Method Detail

      • pattern

        String pattern()
        Returns the URL pattern.
        Returns:
        the URL pattern
      • matcher

        default Matcher matcher​(String input)
        Creates a matcher that will match the given input against this pattern.
        Parameters:
        input - The character sequence to be matched
        Returns:
        A new matcher for this pattern
      • matches

        default boolean matches​(String input)
        Attempts to match the given input against the pattern.
        Parameters:
        input - The character sequence to be matched
        Returns:
        true if the given input matches this pattern
      • matches

        default boolean matches​(URL url)
        Attempts to match the given URL external form against the pattern.
        Parameters:
        url - URL to be matched
        Returns:
        true if the given URL matches this pattern