Skip to content

Home

Development

IDEs

API Explorer

Releases

Release notes

Martini Runtime

Martini Desktop

Martini Online

Feature requests

Bug reports

RssMethods

The RssMethods class contains methods for fetching RSS feeds, available for use in both Gloop and Groovy. Below are some examples on how these methods may be used:

Sample Gloop service showing how to use the `RssMethods` one-liners

1
2
3
4
5
6
7
// Retrieve RSS entries
def cnnRssFeeds = 'http://rss.cnn.com/rss/edition.rss'.rss().getEntries()

// Iterate through all the retrieved RSS entries, printing their titles
for (def feed : cnnRssFeeds) {
    println feed.getTitle()
}