Package io.micronaut.core.util
Class RegexPathMatcher
- java.lang.Object
-
- io.micronaut.core.util.RegexPathMatcher
-
- All Implemented Interfaces:
PathMatcher
public class RegexPathMatcher extends java.lang.Object implements PathMatcher
PathMatcher implementation for regex-style patterns.- Since:
- 3.1
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.util.PathMatcher
ANT, REGEX
-
-
Constructor Summary
Constructors Constructor Description RegexPathMatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(java.lang.String pattern, java.lang.String source)Returnstrueif the givensourcematches the specifiedpattern,falseotherwise.
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String pattern, java.lang.String source)Description copied from interface:PathMatcherReturnstrueif the givensourcematches the specifiedpattern,falseotherwise.- Specified by:
matchesin interfacePathMatcher- Parameters:
pattern- the pattern to match againstsource- the source to match- Returns:
trueif the givensourcematches the specifiedpattern,falseotherwise.
-
-