Class RegexPathMatcher

java.lang.Object
io.micronaut.core.util.RegexPathMatcher
All Implemented Interfaces:
PathMatcher

public class RegexPathMatcher extends Object implements PathMatcher
PathMatcher implementation for regex-style patterns.
Since:
3.1
Author:
Rafael Acevedo
  • Constructor Details

    • RegexPathMatcher

      public RegexPathMatcher()
  • Method Details

    • matches

      public boolean matches(String pattern, String source)
      Description copied from interface: PathMatcher
      Returns true if the given source matches the specified pattern, false otherwise.
      Specified by:
      matches in interface PathMatcher
      Parameters:
      pattern - the pattern to match against
      source - the source to match
      Returns:
      true if the given source matches the specified pattern, false otherwise.