Package org.opencms.site.xmlsitemap
Class CmsXmlSeoConfiguration
java.lang.Object
org.opencms.site.xmlsitemap.CmsXmlSeoConfiguration
Configuration bean which represents the options which are configurable from a 'seo-file' resource.
-
Field Summary
Modifier and TypeFieldDescriptionThe exclude paths.The include paths.protected String
The mode.protected String
Text to be included in robots.txt after the sitemap references.static final Object
Mode name constant.static final Object
Mode name constant.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
Node name.static final String
The file type used for generating XML sitemaps or robots.txt files. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the list of exclude paths.Gets the list of include paths.getMode()
Gets the mode.Gets the text which should be inserted in robots.txt mode.Gets the configured server URL.Gets the class name for the sitemap generator class (may return null if none is explicitly configured).boolean
Returns true if this configuration is configured as robots.txt mode.void
load
(CmsObject cms, CmsResource resource) Loads the bean data from the given resource.boolean
Returns true if container page modification dates should be computed.boolean
True if caching should be used for the generated XML sitemap.
-
Field Details
-
MODE_ROBOTS_TXT
Mode name constant. -
MODE_XML_SITEMAP
Mode name constant. -
N_COMPUTE_CONTAINER_PAGE_DATES
Node name.- See Also:
-
N_EXCLUDE
Node name.- See Also:
-
N_CACHE
Node name.- See Also:
-
N_SERVER_URL
Node name.- See Also:
-
N_GENERATOR_CLASS
Node name.- See Also:
-
N_INCLUDE
Node name.- See Also:
-
N_MODE
Node name.- See Also:
-
N_ROBOTS_TXT_TEXT
Node name.- See Also:
-
SEO_FILE_TYPE
The file type used for generating XML sitemaps or robots.txt files.- See Also:
-
m_excludes
The exclude paths. -
m_includes
The include paths. -
m_mode
The mode. -
m_robotsTxtText
Text to be included in robots.txt after the sitemap references.
-
-
Constructor Details
-
CmsXmlSeoConfiguration
public CmsXmlSeoConfiguration()
-
-
Method Details
-
getExcludes
Gets the list of exclude paths.- Returns:
- the list of exclude paths
-
getIncludes
Gets the list of include paths.- Returns:
- the list of include paths
-
getMode
Gets the mode.- Returns:
- the mode
-
getRobotsTxtText
Gets the text which should be inserted in robots.txt mode.- Returns:
- the text to insert in robots.txt mode
-
getServerUrl
Gets the configured server URL.This, if set, replaces the host/port used by getOnlineLink() for the URLs in the XML sitemap.
- Returns:
- the server URL
-
getSitemapGeneratorClassName
Gets the class name for the sitemap generator class (may return null if none is explicitly configured).- Returns:
- the sitemap generator class name
-
isXmlSitemapMode
Returns true if this configuration is configured as robots.txt mode.- Returns:
- true if the mode is set to the robots.txt mode
-
load
Loads the bean data from the given resource.- Parameters:
cms
- the CMS context to useresource
- the resource from which to load the data- Throws:
CmsException
- if something goes wrong
-
shouldComputeContainerPageModificationDates
Returns true if container page modification dates should be computed.- Returns:
- true if container page modification dates should be computed
-
usesCache
True if caching should be used for the generated XML sitemap.- Returns:
- true if caching should be used for the generated XML sitemap
-