Interface PathMatcher
- All Known Implementing Classes:
RegexPathMatcher,StringPathMatcher,WildCardPathMatcher
public interface PathMatcher
-
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(Location location, List<PathMatcher> remaining) Does this path matcher prevent a match, or do any of its successors prevent a matchstatic booleanmatchesTheRest(Location location, List<PathMatcher> remaining) Work out whether the rest of the location meets the rest of the remaining matchersstatic PathMatcherFactory method - convert an object into its path matcher
-
Method Details
-
matches
Does this path matcher prevent a match, or do any of its successors prevent a match- Parameters:
location- the locationremaining- the remainingPathMatchers- Returns:
trueif there's a match
-
of
Factory method - convert an object into its path matcher- Parameters:
value- the value to convert- Returns:
- a path matcher or
IllegalArgumentExceptionif not known
-
matchesTheRest
Work out whether the rest of the location meets the rest of the remaining matchers- Parameters:
location- the location so farremaining- the remaining matchers- Returns:
- true if matches the remainder
-