A matcher that manages a "mount table", allowing to add subsitemaps to a Cocoon application without
modifying the main sitemap. This is especially useful for prototypes and demos where installing
a separate instance of Cocoon is overkill.
The mount table is an xml file which has a format similar to the map:mount syntax:
The matcher will scan the mount table for an "uri-prefix" value matching the beginning of the current
request URI, and if found, succeed and populate the "src" and "uri-prefix" sitemap variables.
This matcher accepts a single configuration parameter, indicating if missing mount tables should be
silently ignored (defaults is false, meaning "don't ignore"):
match(String pattern,
Map objectModel,
Parameters parameters)
Matches the pattern against some Request values
and returns a Map object with replacements
for wildcards contained in the pattern.
pattern - The pattern to match against. Depending on the
implementation the pattern can contain wildcards
or regular expressions.
objectModel - The Map with object of the
calling environment which can be used
to select values this matchers matches against.
Returns:
Map The returned Map object with
replacements for wildcards/regular-expressions
contained in the pattern.
If the return value is null there was no match.