You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

DataFeed

DataFeed is the base type for data feed sources. It contains all necessary information about specific data feeds and their format.

DataFeed extends AbstractNode and provides the following additional properties.

Properties

Name Type Description
url String The URL of the feed
feedType String The type of the feed e.g. RSS2.0, Atom, …
description String A description of the feed source
updateInterval Long Specifies the time interval (ms) in which updates get pulled from the source
lastUpdated Date Date of last update
maxAge Long The maximum age (ms) for FeedItem
updateInterval Long Amount of time that is required to have passed before an update request is processed
maxItems Integer Number of FeedItem to retrieve
items FeedItem Collection of related feed items

Actions

Name Parameters Description
updateFeed None Issues an update, in which FeedItem will be pulled according to the given properties. Forces a cleanup of FeedItem depending on their maximum allowed age and count.
updateFeed Boolean Works in a similar way as the non-parametrized updateFeed Method, but allows to pass a Boolean to enable or disable the cleanup procedure.
updateIfDue None Performs an updateFeed operation including a cleanup, if the time since lastUpdated is greater than the set updateInterval.

For more details regarding actions refer to the Custom Action Button article.

Search results for "DataFeed"

We could not find anything matching "DataFeed" in our documentation. Please rephrase your search.

You can also ask your questions in the Structr Google Group or create a free account in the Structr Support Portal.
Click here to send feedback to the Structr team.