Interface UrlPattern

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.util.regex.Matcher matcher​(java.lang.String input)
      Creates a matcher that will match the given input against this pattern.
      default boolean matches​(java.lang.String input)
      Attempts to match the given input against the pattern.
      default boolean matches​(java.net.URL url)
      Attempts to match the given URL external form against the pattern.
      java.lang.String pattern()
      Returns the URL pattern.
    • Method Detail

      • pattern

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

        default java.util.regex.Matcher matcher​(java.lang.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​(java.lang.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​(java.net.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