Equivalent to PathMatcher, but enables use of parsed representations
of routes and patterns for efficiency reasons in scenarios where routes from
incoming messages are continuously matched against a large number of message
handler patterns.
PathMatcher
| Modifier and Type | Class and Description |
|---|---|
| public static interface | RouteMatcher.
A parsed representation of a route. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Comparator | Returns: a comparator capable of sorting patterns in order of explicitnessthe full path to use for comparison routeGiven a route, return a |
| public boolean | Returns: true if the given route represents a patternthe route to check route)Whether the given |
| public boolean | Returns: true if there is a match, false otherwisethe pattern to try to match pattern, RouteMatcher.the route to test against routeMatch the given route against the given pattern. |
| public Map | Returns: a map with template variables and valuesthe pattern, possibly containing templates variables pattern, RouteMatcher.the route to extract template variables from routeMatch the pattern to the route and extract template variables. |
| public RouteMatcher. | Returns: the parsed representation of the routethe route to parse routeValue)Return a parsed representation of the given route. |
| combine | back to summary |
|---|---|
| public String combine(String pattern1, String pattern2) Combines two patterns into a single pattern.
| |
| getPatternComparator | back to summary |
|---|---|
| public Comparator Given a route, return a
| |
| isPattern | back to summary |
|---|---|
| public boolean isPattern(String route) Whether the given
| |
| match | back to summary |
|---|---|
| public boolean match(String pattern, RouteMatcher. Match the given route against the given pattern.
| |
| matchAndExtract | back to summary |
|---|---|
| public Map Match the pattern to the route and extract template variables. | |
| parseRoute | back to summary |
|---|---|
| public RouteMatcher. Return a parsed representation of the given route.
| |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| value | back to summary |
|---|---|
| public String value() The original route value. | |