public class RSS2ChannelFeed<R extends RSS2Item> extends AbstractFeed<StringBuilder,R>
RSS2Channel
and RSS2Item
sProcess.Event, Process.EventPoint
consumer, itemsSuppliers, subFeedConsumers, subFeedSuppliers
Constructor and Description |
---|
RSS2ChannelFeed() |
Modifier and Type | Method and Description |
---|---|
protected void |
dedupe(R item) |
protected void |
extendItem(R item,
StringBuilder sb)
Add other tags based on custom/extended schema
|
StringBuilder |
get() |
RSS2Channel |
getChannel()
Details about the channel
|
void |
init() |
void |
setChannel(RSS2Channel channel)
Details about the channel
|
protected StringBuilder |
writeBaseItem(R item,
StringBuilder feed)
Write the base Item for the
FeedItem |
protected void |
writeChannelData(StringBuilder feed) |
void |
writeItemToConsumer(StringBuilder feed,
StringBuilder itemOut)
On each Item elment creation, write/pipe it to
a
Consumer |
protected String |
xmlSchemaHeader()
Since RSS can be extended and multiple versions can exist.
|
getConsumer, getItemsSuppliers, getSubFeedConsumers, getSubFeedSuppliers, setConsumer, setItemsSuppliers, setSubFeedConsumers, setSubFeedSuppliers, writeItems
@PostConstruct public void init()
protected String xmlSchemaHeader()
<?xml version=\"1.0\" encoding=\"UTF-8\" ?><rss version=\"2.0\">
Example alternate: public StringBuilder get()
protected void writeChannelData(StringBuilder feed)
protected StringBuilder writeBaseItem(R item, StringBuilder feed) throws Continue
AbstractFeed
FeedItem
writeBaseItem
in class AbstractFeed<StringBuilder,R extends RSS2Item>
item
- as FeedItem
type feed
- as the feed being writtenContinue
public void writeItemToConsumer(StringBuilder feed, StringBuilder itemOut)
Feed
Consumer
itemOut
- in protected void extendItem(R item, StringBuilder sb)
item
- as RSS2Item
sb
- as StringBuilder
xmlSchemaHeader()
,
for sample
public RSS2Channel getChannel()
public void setChannel(RSS2Channel channel)
Copyright © 2018. All rights reserved.