Blog

Luis Majano

October 15, 2008

Spread the word


Share your thoughts

I have completed a very cool rssReader plugin for the next installment of ColdBox. This is a stand alone plugin that I would like the community to try out and see if it would make sense to add it to the core plugins list for version 2.6.

What is so special on this plugin?

  • Uses a file caching technique by serializing/deserializing the rss structure into bytearrays.
  • The file cache is configurable and has an exposed API for you to use.
  • One standard format for RSS or ATOM feeds
  • ISO86901 and RFC822 Date Formatting and parsing. All dates are translated to standard coldfusion date strings. No need to translate or parse.
  • Easily to configure via your coldbox.xml.cfm
  • Ability to return feed items as a query or array of structures.

Those are some of the features of this plugin. The plugin is built using a cfhttp method, so its compatible with cf7 and cf8. Anyways, take it for a spin and let me know your thoughts on it. Especially if you think the plugin would be beneficial for the next ColdBox version 2.6

Configuring The Plugin:

Below are the settings you must place on your coldbox.xml.cfm:

rssReader_useCache : Use the file cache or not (Default is true, Optional Setting)

rssReader_cacheLocation : Where to store the file caching, relative to the app or absolute

rssReader_cacheTimeout : In minutes, the timeout of the file cache items. (Default is 30 minutes, Optional Setting)

rssReader_httpTimeout : In seconds, the timeout of the cfhttp call (Default is 30 seconds, Optional Setting)

Using the plugin:

//In your handler rc.myFeed = getMyPlugin("rss.rssReader").readFeed('http://news.google.com/nwshp?hl=en&tab=wn&output=rss'); //Best PRactice, put your feed links in a db or your settings. So you can do something like rc.myFeed = getMyPlugin("rss.rssReader").readFeed( getSetting('rss_googlenews') );

What gets returned on the FeedStructure:

[AUTHOR] - Feed Author
[AUTHOREMAIL] - Author Email
[AUTHORURL] - Author URL
[DATE] - Feed Created Date
[DATEUPDATED] - Feed Updated Date (Normalized ColdFusion Dates)
[DESCRIPTION] - Feed Description (Normalized ColdFusion Dates)
[TITLE] - Feed Title
[IMAGE] - Image Structure
   [LINK] - Image Link
   [TITLE] - Image Title
   [URL] - Image URL
[LINK] - Feed Link
[ITEMS] - Items Array or Query, both contain the following
   [DATE] - Feed Created Date (Normalized ColdFusion Dates)
   [DATEUPDATED] - Feed Updated Date (Normalized ColdFusion Dates)
   [DESCRIPTION] - The content
   [ENCLOSURE] - The enclosure
   [LINK] - The link to the item
   [TITLE] - The title to the item

Add Your Comment

(1)

Mar 03, 2008 12:11:22 UTC

by Joshua Giese

This is great. I am working on a project that will really benefit from this. Thanks Luis!

Recent Entries

BoxLang 1.0.0 Beta 7 Launched

BoxLang 1.0.0 Beta 7 Launched

We are pleased to announce the release of BoxLang 1.0.0-Beta 7! This latest beta version includes improvements and essential bug fixes, but more importantly it certifies the execution of ColdBox HMVC and TestBox.

What is BoxLang?

BoxLang is a modern dynamic JVM language that can be deployed on multiple runtimes: operating system (Windows/Mac/*nix/Embedded), web server, lambda, iOS, android, web assembly, and more. BoxLang combines many features from different progr

Luis Majano
Luis Majano
July 26, 2024
New BoxLang Feature: Java Method References and Higher-Order Functions

New BoxLang Feature: Java Method References and Higher-Order Functions

We’ve added more goodies to our BoxLang Java interop: method references and higher-order functions. CFML has never let you do these things, making Java Interop feel like a second-class citizen. But with BoxLang, we’re elevating Java integration to a new level.

Maria Jose Herrera
Maria Jose Herrera
July 26, 2024
Level Up Your ColdFusion Skills with our Virtual Live Training: ColdBox from Zero to Hero

Level Up Your ColdFusion Skills with our Virtual Live Training: ColdBox from Zero to Hero

Level Up Your ColdFusion Skills with our Virtual Live Training: ColdBox from Zero to Hero

Are you a CFML developer looking to take your skills to the next level? Look no further than the ColdBox from Zero to Hero Virtual Live Training! This intensive two-day course will equip you with the knowledge and expertise to build robust and scalable applications using ColdBox 7, the latest version of the most popular CFML MVC framework.

What You'll Learn:

  • Master the Fun...

Cristobal Escobar
Cristobal Escobar
July 24, 2024