public class SiteMapFeed extends AbstractFeed<StringBuilder,SiteMapItem>
SiteMapItem
Feed (XML).https://xmlsitemapgenerator.org/help/xml-sitemap-example.aspx
,
Serialized FormProcess.Event, Process.EventPoint
consumer, itemsSuppliers, subFeedConsumers, subFeedSuppliers
Constructor and Description |
---|
SiteMapFeed() |
Modifier and Type | Method and Description |
---|---|
protected void |
dedupe(SiteMapItem item) |
StringBuilder |
get() |
protected StringBuilder |
writeBaseItem(SiteMapItem item,
StringBuilder feedStream)
Write the base Item for the
FeedItem |
void |
writeItemToConsumer(StringBuilder feedStream,
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
protected String xmlSchemaHeader()
<?xml version=\"1.0\" encoding=\"UTF-8\" ?><rss version=\"2.0\">
Example alternate: public StringBuilder get()
protected StringBuilder writeBaseItem(SiteMapItem item, StringBuilder feedStream) throws Continue
AbstractFeed
FeedItem
writeBaseItem
in class AbstractFeed<StringBuilder,SiteMapItem>
item
- as FeedItem
type feedStream
- as the feed being writtenContinue
public void writeItemToConsumer(StringBuilder feedStream, StringBuilder itemOut)
Feed
Consumer
itemOut
- in protected void dedupe(SiteMapItem item) throws Continue
Continue
Copyright © 2018. All rights reserved.