|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.sitemap.SitemapIndexGenerator
public class SitemapIndexGenerator
Generates Sitemap index repository item which contains links to all sitemap entries.
This is an example what will be generated:
<?xml version="1.0" encoding="UTF-8"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc>http://www.example.com/sitemap1.xml</loc> </sitemap> <sitemap> <loc>http://www.example.com/sitemap2.xml</loc> </sitemap> </sitemapindex>The
loc
tag identifies the location of the Sitemap.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
SitemapIndexGenerator()
|
Method Summary | |
---|---|
void |
generateSitemapIndex(SitemapGeneratorService pSitemapGeneratorService)
This method generates index for sitemaps and write this index into sitemap repository. |
java.lang.String |
getSiteIndexFilename()
Returns Sitemap index filename. |
java.lang.String |
getSitemapUrl(RepositoryItem pSitemap,
SitemapPropertiesManager pSitemapPropertiesManager)
Gets full sitemap URL for specified sitemap repository item. |
java.lang.String |
getUrlPrefix()
Returns URL prefix to the application with protocol, host, port |
WebApp |
getWebApp()
Returns representation of web application in WebApp . |
void |
setSiteIndexFilename(java.lang.String pSiteIndexFilename)
Sets Sitemap index filename. |
void |
setUrlPrefix(java.lang.String pUrlPrefix)
Sets new URL prefix to the application with protocol, host, port |
void |
setWebApp(WebApp pWebApp)
Sets new WebApp component. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public SitemapIndexGenerator()
Method Detail |
---|
public java.lang.String getSiteIndexFilename()
public void setSiteIndexFilename(java.lang.String pSiteIndexFilename)
the
- Sitemap index filenamepublic java.lang.String getUrlPrefix()
public void setUrlPrefix(java.lang.String pUrlPrefix)
UrlPrefix
- new URL prefix to the application with protocol, host, portpublic WebApp getWebApp()
WebApp
.
public void setWebApp(WebApp pWebApp)
WebApp
- new WebApp componentpublic void generateSitemapIndex(SitemapGeneratorService pSitemapGeneratorService)
We retrieve all sitemap items, build sitemap entry for each of them, and write sitemap index file into sitemap repository.
public java.lang.String getSitemapUrl(RepositoryItem pSitemap, SitemapPropertiesManager pSitemapPropertiesManager)
pSitemap
- sitemap repository itempSitemapPropertiesManager
- sitemap properties manager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |