public class PlanetFeedGenerator extends AbstractSyndFeedGenerator implements Cloneable
SyndFeed
based on aggregate planet 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 |
---|
PlanetFeedGenerator() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Feed |
generate()
Generate a SyndFeed.
|
protected String |
getFeedType()
Determine the feed type.
|
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) |
newSyndFeed, syndFeedToXml
public void setFeedPath(String feedPath)
public Feed generate() throws FeedGenerationException
AbstractSyndFeedGenerator
generate
in interface FeedGenerator
generate
in class AbstractSyndFeedGenerator
FeedGenerationException
- when an exception occurs while generating the aggregate feedpublic List<com.rometools.rome.feed.synd.SyndEntry> loadFeedEntries()
AbstractSyndFeedGenerator
loadFeedEntries
in class AbstractSyndFeedGenerator
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 Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
protected String getFeedType()
Copyright © 2016 Magnolia International Ltd.. All rights reserved.