public class CmsXmlSitemapActionElement extends CmsJspActionElement
| Modifier and Type | Field and Description |
|---|---|
protected CmsXmlSeoConfiguration |
m_configuration
The configuration bean.
|
NOT_INITIALIZED| Constructor and Description |
|---|
CmsXmlSitemapActionElement(javax.servlet.jsp.PageContext pageContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Constructor, with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
static CmsXmlSitemapGenerator |
createSitemapGenerator(java.lang.String className,
java.lang.String folderRootPath)
Creates an XML sitemap generator instance given a class name and the root path for the sitemap.
|
static CmsXmlSitemapGenerator |
prepareSitemapGenerator(CmsResource seoFileRes,
CmsXmlSeoConfiguration config)
Constructs an XML sitemap generator given an XML sitemap configuration file.
|
void |
run()
Displays either the generated sitemap.xml or the generated robots.txt, depending on the configuration.
|
editable, editable, editable, editableManualClose, editableManualOpen, getContent, getContent, getMessages, getMessages, getMessages, getMessages, getNavigation, getNavigationUri, img, img, include, include, include, include, include, include, includeSilent, includeSilent, includeSilent, includeSilent, info, label, link, link, properties, properties, property, property, property, property, template, template, template, toAbsolute, usergetCmsObject, getController, getJspContext, getMessage, getRequest, getRequestContext, getResponse, handleException, handleMissingFlexController, init, isNotInitialized, isSupressingExceptions, setContentType, setStatus, setSupressingExceptionsprotected CmsXmlSeoConfiguration m_configuration
public CmsXmlSitemapActionElement(javax.servlet.jsp.PageContext pageContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
pageContext - the JSP page context objectrequest - the JSP requestresponse - the JSP responsepublic static CmsXmlSitemapGenerator createSitemapGenerator(java.lang.String className, java.lang.String folderRootPath) throws CmsException
className - the class name of the sitemap generator (may be null for the defaultfolderRootPath - the root path of the start folder for the sitemapCmsException - if something goes wrongpublic static CmsXmlSitemapGenerator prepareSitemapGenerator(CmsResource seoFileRes, CmsXmlSeoConfiguration config) throws CmsException
seoFileRes - the sitemap XML fileconfig - the parsed configurationCmsException - if something goes wrongpublic void run() throws java.lang.Exception
java.lang.Exception - if something goes wrong