Package io.micronaut.core.util
Class RegexPathMatcher
java.lang.Object
io.micronaut.core.util.RegexPathMatcher
- All Implemented Interfaces:
PathMatcher
PathMatcher implementation for regex-style patterns.
- Since:
- 3.1
- Author:
- Rafael Acevedo
-
Field Summary
Fields inherited from interface io.micronaut.core.util.PathMatcher
ANT, REGEX -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RegexPathMatcher
public RegexPathMatcher()
-
-
Method Details
-
matches
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.
-