Handler - filterSubproductByKeyword

 

Description

This juggler filters the String and URL content of a composite product. It checks to see if ANY of the specified keywords are present in any of the subproducts of a composite product. It then either passes or rejects those subproducts. Non-string and URL subproducts (e.g. files and byte arrays) are passed blindly without any keyword checking.

 

Configuration Variables

wordList
List of keywords to match against the product's string contents. Each word is in quotes as in:

"word1" "word2" "word3"

passOrReject

The match criteria which defaults to pass. If set to reject the juggler rejects any product that matches any of the keywords.

 

Product

Product is null if there are no sources, or if there is nothing to pass.

 

How it Works

The filterSubproductByKeyword juggler applies a filter to the string and URL subproducts of its input product. The following criteria is used to keep or reject a given subproduct:

 

The filtered product is pruned before sending it out such that a single subproduct inside a container or containers is reduced to the single subproduct, and empty containers are removed.

Revised: 12 January 1999