Note
As of Spring 4.1, this is based on the com.rometools
variant of ROME, version 1.5. Please upgrade your build dependency.
Application-specific view classes will extend this class.
The view will be held in the subclass itself, not in a template.
Main entry points are the buildFeedMetadata and buildFeedItems.
Thanks to Jettro Coenradie and Sergio Bossa for the original feed view prototype!
buildFeedMetadata, buildFeedItems
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | buildFeedEntries(Map<String, Object>
the model Map model, Channel the feed to add entries to channel, HttpServletRequest in case we need locale etc. Shouldn't look at attributes. request, HttpServletResponse in case we need to set cookies. Shouldn't write to it. response)Implements abstract org. Invokes |
| protected abstract List | Returns: the feed items to be added to the feedthe model Map model, HttpServletRequest in case we need locale etc. Shouldn't look at attributes. request, HttpServletResponse in case we need to set cookies. Shouldn't write to it. response)Subclasses must implement this method to build feed items, given the model. |
| protected Channel | newFeed()
Implements abstract org. Create a new Channel instance to hold the entries. |
| AbstractRssFeedView | back to summary |
|---|---|
| public AbstractRssFeedView() | |
| buildFeedItems | back to summary |
|---|---|
| protected abstract List Subclasses must implement this method to build feed items, given the model. Note that the passed-in HTTP response is just supposed to be used for setting cookies or other HTTP headers. The built feed itself will automatically get written to the response after this method returns.
| |
| newFeed | back to summary |
|---|---|
| protected Channel newFeed() Implements abstract org. Create a new Channel instance to hold the entries. By default returns an RSS 2.0 channel, but the subclass can specify any channel.
| |