Class URLPatternMatcher


  • public class URLPatternMatcher
    extends Object
    The class provides pattern matching for notenforced URIs/URLs.
    • Constructor Detail

      • URLPatternMatcher

        public URLPatternMatcher()
        Constructor
    • Method Detail

      • match

        public boolean match​(String requestedURL,
                             Collection<String> patterns,
                             boolean wildcard)
                      throws MalformedURLException
        Matches the URL against the provided URL patterns.
        Parameters:
        requestedURL - The URL to be matched.
        patterns - The patterns to match the URL against.
        wildcard - Flag for wildcard comparison
        Returns:
        true if matched, false otherwise.
        Throws:
        MalformedURLException - If the URL or one of the patterns is invalid.