public abstract class AbstractGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseUrl |
protected Map<String,WebPage> |
urls |
| Constructor and Description |
|---|
AbstractGenerator(String baseUrl)
Construct web sitemap.
|
AbstractGenerator(String baseUrl,
boolean root)
Construct web sitemap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPage(WebPage webPage)
Add single page to sitemap
|
void |
addPages(Collection<WebPage> webPages)
Add collection of pages to sitemap
|
public AbstractGenerator(String baseUrl, boolean root)
baseUrl - All URLs must start with this baseUrl, for example
http://www.javavids.comroot - If Base URL is root (for example http://www.javavids.com or if
it's some path like http://www.javalibs.com/blog)public AbstractGenerator(String baseUrl)
baseUrl - All URLs must start with this baseUrl, for example
http://www.javavids.compublic void addPage(WebPage webPage)
webPage - single pagepublic void addPages(Collection<WebPage> webPages)
webPages - Collection of pagesCopyright © 2016. All rights reserved.