tjg184 / urlrewritefilter

Automatically exported from code.google.com/p/urlrewritefilter
Other
0 stars 0 forks source link

add custom condition method #169

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be great if there was a way to invoke an arbitrary predicate method as 
a condition - it would accept the request, and return a boolean specifying 
whether the condition was met or not. The new configuration element could have 
'class' and 'method' attributes similar to the 'run' element, but would be 
called to test the condition rather than to run it after the other conditions 
and match are already determined.

This could be useful for all sorts of customized conditions, such as custom 
lookups, blacklists, whitelists, etc. that are managed by the application and 
not hard-coded in urlrewrite.xml.

Original issue reported on code.google.com by amichair on 3 Jul 2014 at 2:36