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 TypeMethodDescriptionvoid
addSiteMapEntries
(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.boolean
canHandleSiteMapConfiguration
(SiteMapGeneratorConfiguration siteMapGeneratorConfiguration) Returns true if this SiteMapGenerator is able to process the passed in siteMapGeneratorConfiguration.protected Date
generateDate
(SiteMapUrlEntry urlEntry) protected String
generateUri
(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:
canHandleSiteMapConfiguration
in interfaceSiteMapGenerator
- Parameters:
siteMapGeneratorConfiguration
-- Returns:
-
addSiteMapEntries
Description copied from interface:SiteMapGenerator
Typically, the generator will loop through and build a list of URLs to add to the sitemap by calling methods on the SiteMapBuilder.- Specified by:
addSiteMapEntries
in interfaceSiteMapGenerator
-
generateUri
-
generateDate
-