Matchers
A Matcher attempts to match an URI with a specified pattern for dispatching the request to a specific processing pipeline.
Different types of matchers:
- wildcard matcher
- regexp matcher
More matchers can be added without modifying Cocoon.
Matchers help in specifying a specific pipeline processing for a group of URIs.
<map:matchers default="wildcard">
<map:matcher name="wildcard" factory="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
<map:matcher name="regexp" factory="org.apache.cocoon.matching.RegexpURIMatcherFactory"/>
Sitemap entries for different types of matchers
<map:match pattern="jsp/*">
<map:generate type="jsp" src="/docs/samples/jsp/{1}.jsp"/>
<map:match pattern="hello.pdf">
Pipeline entries in sitemap file