Package org.opencms.site
Class CmsAlternativeSiteRootMapping
java.lang.Object
org.opencms.site.CmsAlternativeSiteRootMapping
- All Implemented Interfaces:
Serializable
Describes a mapping rule that selects a different site root based on whether the requested path matches a set of prefixes or not.
The path prefixes must be non-trivial, they can't just be the empty string or '/' - these values will be ignored.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCmsAlternativeSiteRootMapping
(String siteRoot, List<String> prefixes, String titleSuffix) Creates a new instance. -
Method Summary
-
Field Details
-
N_ALTERNATIVE_SITE_ROOT_MAPPING
Node name for the alternative site root mapping.- See Also:
-
N_PATH
Node name for mapped paths.- See Also:
-
A_TITLE_SUFFIX
Suffix to append to the title of the site.- See Also:
-
-
Constructor Details
-
CmsAlternativeSiteRootMapping
Creates a new instance.- Parameters:
siteRoot
- the site rootprefixes
- the prefixestitleSuffix
- the title suffix
-
-
Method Details
-
appendXml
Appends configuration data to the given parent element.- Parameters:
parent
- the parent element
-
equals
-
getPrefixes
Gets the path prefixes.- Returns:
- the path prefixes
-
getSiteRoot
Gets the site root as a CmsPath.- Returns:
- the site root as a CmsPath
-
getTitleSuffix
Gets the suffix to append to the site title.- Returns:
- the suffix to append to the site title
-
hashCode
-
toString
-