Class CustomUrlSiteMapGenerator
java.lang.Object
org.broadleafcommerce.common.sitemap.service.CustomUrlSiteMapGenerator
- All Implemented Interfaces:
SiteMapGenerator
@Component("blCustomSiteMapGenerator")
public class CustomUrlSiteMapGenerator
extends Object
implements SiteMapGenerator
Responsible for generating site map entries.
Each SiteMapGenerator can generate
- Author:
- bpolster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSiteMapEntries(SiteMapGeneratorConfiguration smgc, SiteMapBuilder siteMapBuilder) Typically, the generator will loop through and build a list of URLs to add to the sitemap by calling methods on the SiteMapBuilder.booleancanHandleSiteMapConfiguration(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration) Returns true if this SiteMapGenerator is able to process the passed in siteMapGeneratorConfiguration.protected DategenerateDate(SiteMapUrlEntry urlEntry) protected StringgenerateUri(SiteMapBuilder smb, SiteMapUrlEntry urlEntry)
-
Constructor Details
-
CustomUrlSiteMapGenerator
public CustomUrlSiteMapGenerator()
-
-
Method Details
-
canHandleSiteMapConfiguration
public boolean canHandleSiteMapConfiguration(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration) Returns true if this SiteMapGenerator is able to process the passed in siteMapGeneratorConfiguration.- Specified by:
canHandleSiteMapConfigurationin interfaceSiteMapGenerator- Parameters:
siteMapGeneratorConfiguration-- Returns:
-
addSiteMapEntries
Description copied from interface:SiteMapGeneratorTypically, the generator will loop through and build a list of URLs to add to the sitemap by calling methods on the SiteMapBuilder.- Specified by:
addSiteMapEntriesin interfaceSiteMapGenerator
-
generateUri
-
generateDate
-