org.apache.shindig.gadgets
Class FeedProcessor

java.lang.Object
  extended by org.apache.shindig.gadgets.FeedProcessor

public class FeedProcessor
extends Object

Processes RSS & Atom Feeds and converts them into JSON output.


Constructor Summary
FeedProcessor()
           
 
Method Summary
 org.json.JSONObject process(String feedUrl, String feedXml, boolean getSummaries, int numEntries)
          Converts feed XML to JSON.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeedProcessor

public FeedProcessor()
Method Detail

process

public org.json.JSONObject process(String feedUrl,
                                   String feedXml,
                                   boolean getSummaries,
                                   int numEntries)
                            throws GadgetException
Converts feed XML to JSON.

Parameters:
feedUrl - The url that the feed was retrieved from.
feedXml - The raw XML of the feed to be converted.
getSummaries - True if summaries should be returned.
numEntries - Number of entries to return.
Returns:
The JSON representation of the feed.
Throws:
GadgetException


Copyright © 2007-2012. All Rights Reserved.