I would like a library that works just like servlet mappings without the servlet container. It should support concepts such as
/* maps the default value
/exact maps exact path maps
/prefix maps any path that begins with "/prefix"
*.suffix maps any paths that end with "suffix".
Imagine something like a Map that accepts string paths to fetch values. The library should also support some concept of priority so if i add an exact path before a prefix, the test is against the exact before checking the prefix paths. Naturaly i could write my own up but a boring linear search seems a bit dumb especially as most paths will be exact patterns.
Does anyone know of a library that does something like this ???