public interface PathMatcher
Matches HTTP path against configured path of a route.
-
Method Summary
Modifier and TypeMethodDescriptionMatch the provided path against the configured path.prefixMatch
(UriPath uriPath) Match the provided path against the configured path as a prefix match.
-
Method Details
-
match
Match the provided path against the configured path. Must do a full match on the whole path.- Parameters:
path
- HTTP path that was requested by user- Returns:
- match result
-
prefixMatch
Match the provided path against the configured path as a prefix match. This is used to handle service routing, where service path pattern may match only a subset of segments. The matching MUST always match exact segments.- Parameters:
uriPath
- path that was requested by user- Returns:
- match result
-