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 buildFeedEntries.
Thanks to Jettro Coenradie and Sergio Bossa for the original feed view prototype!
buildFeedMetadata, buildFeedEntries, Atom Syndication Format
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DEFAULT_FEED_TYPE
The default feed type used. |
| private String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final void | buildFeedEntries(Map<String, Object>
the model Map model, Feed the feed to add entries to feed, 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 entries 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 entries, given the model. |
| protected Feed | newFeed()
Implements abstract org. Create a new Feed instance to hold the entries. |
| public void |
| DEFAULT_FEED_TYPE | back to summary |
|---|---|
| public static final String DEFAULT_FEED_TYPE The default feed type used. | |
| feedType | back to summary |
|---|---|
| private String feedType | |
| AbstractAtomFeedView | back to summary |
|---|---|
| public AbstractAtomFeedView() | |
| buildFeedEntries | back to summary |
|---|---|
| protected abstract List Subclasses must implement this method to build feed entries, 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 Feed newFeed() Implements abstract org. Create a new Feed instance to hold the entries. By default returns an Atom 1.0 feed, but the subclass can specify any Feed.
| |
| setFeedType | back to summary |
|---|---|
| public void setFeedType(String feedType) Set the Rome feed type to use. Defaults to Atom 1.0.
| |