prabhuish / webutilities

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

Enhancement: Uniform init parameters to the filters for better customization #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We have multiple filters and I believe we can have more and similar parameters 
to all of them for better customization and consistency.

Each filter can have it's own functionality specific init parameters plus the 
following

1. ignoreURLPattern - regex - ignore filter on matching URLs 
2. acceptURLPattern -regex - apply filter on matching URLs (Note: ignore will 
take precedence over this)
3. ignoreMIMEPattern - regex - ignore filter on matching mimes
4. acceptMIMEPattern - regex - apply filter on matching mimes (Note: ignore 
takes precedence)
5. ignoreUAPattern - regex - ignore filter if user agent matches this pattern
6. acceptUAPattern - regex - apply filter if user agent matches pattern (Same: 
ignore precedes)

Also use of regular expression over string or list of strings gives better 
customization possibilities, we will have these parameters values in Java 
Regular Expressions.

Original issue reported on code.google.com by emailmej...@gmail.com on 20 Mar 2011 at 6:41

GoogleCodeExporter commented 9 years ago

Original comment by rr.patil...@gmail.com on 20 Mar 2011 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by rr.patil...@gmail.com on 20 Mar 2011 at 7:11

GoogleCodeExporter commented 9 years ago

Original comment by rr.patil...@gmail.com on 23 Mar 2011 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by rr.patil...@gmail.com on 7 Apr 2011 at 6:34

GoogleCodeExporter commented 9 years ago

Original comment by rr.patil...@gmail.com on 7 Apr 2011 at 6:36

GoogleCodeExporter commented 9 years ago
Verified in 0.0.4

Original comment by rr.patil...@gmail.com on 9 Apr 2011 at 2:37