Accessibility

Table of Contents

The RSS Watch Sample App (Part 1): Monitoring RSS Feeds Automatically

Designing the CFC

The CFC, named rssWatch, contains the majority of functionality. It has three major tasks or methods:

  1. The getSearches method: This method loads a configuration file that specifies the keywords to look for and where to look for them.
  2. The rssParse method: For each item that the CFC searches for, the rssParse method loads one or more RSS feeds and translates the XML into a set of data.
  3. The processSearches method: This method scans the data to see if a keyword matches, and if so, it adds the data to the result set.

If you have downloaded the source code for this application, open rssWatch.cfc. The CFC contains the three methods I described above. I start with the method that specifies the keywords that the CFC searches for, the getSearches method.