public class RssGenerator extends AbstractGenerator
baseUrl, urls| Constructor and Description |
|---|
RssGenerator(String baseUrl,
boolean root,
String webTitle,
String webDescription)
Create RssGenerator
|
RssGenerator(String baseUrl,
String webTitle,
String webDescription)
Create RssGenerator.
|
| Modifier and Type | Method and Description |
|---|---|
RssGenerator |
addPage(WebPage webPage)
Add single page to sitemap
|
RssGenerator |
addPages(Collection<WebPage> webPages)
Add collection of pages to sitemap
|
String |
constructRss()
This will construct RSS from web pages.
|
public RssGenerator(String baseUrl, boolean root, String webTitle, String webDescription)
baseUrl - Base URLroot - If Base URL is root (for example http://www.javavids.com or if
it's some path like http://www.javalibs.com/blog)webTitle - Web titlewebDescription - Web descriptionpublic String constructRss()
public RssGenerator addPage(WebPage webPage)
addPage in class AbstractGeneratorwebPage - single pagepublic RssGenerator addPages(Collection<WebPage> webPages)
addPages in class AbstractGeneratorwebPages - Collection of pagesCopyright © 2018. All rights reserved.