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.
|
| 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)
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 © 2015. All rights reserved.