Class SiteMapGenerationResponse
java.lang.Object
org.broadleafcommerce.common.sitemap.service.SiteMapGenerationResponse
Represents the outcome of a SiteMap generation request. Can be extended for specific domain objectives but
generally provides the directory location where the SiteMap request is stored.
- Author:
- bpolster
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a code representing the error.List of files representing the siteMap files.Returns the name of the main SiteMap index file.boolean
Returns true if the sitemap generation process resulted in an error.void
setErrorCode
(String errorCode) Sets the error code associated with this SiteMap Generation.void
setHasError
(boolean hasError) Sets that this response represents an error when generating the SiteMap.void
setSiteMapFilePaths
(List<String> siteMapFilePaths) Sets the individual sitemap files.void
setSitemapIndexFileName
(String sitemapIndexFileName) Sets the name of the main index file.
-
Constructor Details
-
SiteMapGenerationResponse
public SiteMapGenerationResponse()
-
-
Method Details
-
getSitemapIndexFileName
Returns the name of the main SiteMap index file.- Returns:
-
setSitemapIndexFileName
Sets the name of the main index file.- Parameters:
sitemapIndexFileName
-
-
getSiteMapFilePaths
List of files representing the siteMap files. The default Broadleaf generator will always create a SiteMap index file with at least one additional Sitemap file.- Returns:
-
setSiteMapFilePaths
Sets the individual sitemap files.- Parameters:
siteMapFilePaths
-
-
isHasError
public boolean isHasError()Returns true if the sitemap generation process resulted in an error.- Returns:
-
setHasError
public void setHasError(boolean hasError) Sets that this response represents an error when generating the SiteMap. -
getErrorCode
Returns a code representing the error. Undefined if called in the context of a response with no error.- Returns:
-
setErrorCode
Sets the error code associated with this SiteMap Generation.- Parameters:
errorCode
-
-