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 boolean
matches(java.lang.String pattern, java.lang.String source)
Returnstrue
if the givensource
matches the specifiedpattern
,false
otherwise.
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String pattern, java.lang.String source)
Description copied from interface:PathMatcher
Returnstrue
if the givensource
matches the specifiedpattern
,false
otherwise.- Specified by:
matches
in interfacePathMatcher
- Parameters:
pattern
- the pattern to match againstsource
- the source to match- Returns:
true
if the givensource
matches the specifiedpattern
,false
otherwise.
-
-