public class RSSModuleFeedGenerator extends AbstractSyndFeedGenerator implements Cloneable
SyndFeed
based on aggregate feeds defined via the RSS Aggregator Module.PROPERTY_NAME_ABSTRACT, PROPERTY_NAME_AUTHOR, PROPERTY_NAME_CATEGORIES, PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_PUB_DATE, PROPERTY_NAME_TITLE
Constructor and Description |
---|
RSSModuleFeedGenerator()
Construct a new RSSModuleSyndFeedGenerator that generates a SyndFeed for the aggregate feed defined via the RSS
Aggregator Module at the given
feedPath . |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
List<com.rometools.rome.feed.synd.SyndEntry> |
loadFeedEntries()
Template method for subclasses to implement in order to provide the feed entries to include in the Feed to
generate.
|
void |
setFeedInfo(com.rometools.rome.feed.synd.SyndFeed feed)
Template method for subclasses are to override in order to set appropriate Feed meta data.
|
void |
setFeedPath(String feedPath) |
generate, newSyndFeed, syndFeedToXml
public RSSModuleFeedGenerator()
feedPath
.public void setFeedPath(String feedPath)
feedPath
- the path of the aggregate feed in the RSS Aggregator module (eg. "/rssaggregator/blogsaggregate")public void setFeedInfo(com.rometools.rome.feed.synd.SyndFeed feed)
AbstractSyndFeedGenerator
title
, link
and description
. The given feed
will never be null.setFeedInfo
in class AbstractSyndFeedGenerator
feed
- the syndication feed that is generated to set the feed meta data forpublic List<com.rometools.rome.feed.synd.SyndEntry> loadFeedEntries()
AbstractSyndFeedGenerator
loadFeedEntries
in class AbstractSyndFeedGenerator
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
Copyright © 2016 Magnolia International Ltd.. All rights reserved.