public class SiteMapBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
baseUrl |
protected SiteMapURLSetWrapper |
currentURLSetWrapper |
protected FileWorkArea |
fileWorkArea |
protected boolean |
gzipSiteMapFiles |
protected List<String> |
indexedFileNames |
protected static org.apache.commons.logging.Log |
LOG |
protected SiteMapConfiguration |
siteMapConfig |
Constructor and Description |
---|
SiteMapBuilder(SiteMapConfiguration siteMapConfig,
FileWorkArea fileWorkArea,
String baseUrl,
boolean gzipSiteMapFiles) |
Modifier and Type | Method and Description |
---|---|
void |
addUrl(SiteMapURLWrapper urlWrapper)
Returns the SiteMapURLSetWrapper that a Generator should use to add its next URL element.
|
protected String |
createNextIndexedFileName()
Create the name of the indexed files.
|
String |
getBaseUrl() |
List<String> |
getIndexedFileNames() |
protected void |
persistIndexedSiteMap()
Save the site map index file.
|
protected void |
persistIndexedURLSetWrapper(SiteMapURLSetWrapper urlSetWrapper)
Save the passed in URL set to a new indexed file.
|
protected void |
persistNonIndexedSiteMap()
Save the passed in URL set to a non-indexed file.
|
protected void |
persistSiteMap() |
protected void |
persistXMLDocument(String fileName,
Object xmlObject)
Method takes in a valid JAXB object (e.g.
|
protected static final org.apache.commons.logging.Log LOG
protected FileWorkArea fileWorkArea
protected SiteMapConfiguration siteMapConfig
protected SiteMapURLSetWrapper currentURLSetWrapper
protected String baseUrl
protected boolean gzipSiteMapFiles
public SiteMapBuilder(SiteMapConfiguration siteMapConfig, FileWorkArea fileWorkArea, String baseUrl, boolean gzipSiteMapFiles)
public void addUrl(SiteMapURLWrapper urlWrapper)
protected void persistXMLDocument(String fileName, Object xmlObject)
fileName
- protected void persistIndexedURLSetWrapper(SiteMapURLSetWrapper urlSetWrapper)
protected void persistNonIndexedSiteMap()
protected void persistIndexedSiteMap()
protected String createNextIndexedFileName()
protected void persistSiteMap()
public String getBaseUrl()
Copyright © 2019. All rights reserved.