Package org.opencms.configuration
Class CmsSitesConfiguration
java.lang.Object
org.opencms.configuration.A_CmsXmlConfiguration
org.opencms.configuration.CmsSitesConfiguration
- All Implemented Interfaces:
I_CmsConfigurationParameterHandler
,I_CmsXmlConfiguration
,I_CmsXmlConfigurationWithUpdateHandler
public class CmsSitesConfiguration
extends A_CmsXmlConfiguration
implements I_CmsXmlConfigurationWithUpdateHandler
Class to read and write the OpenCms site configuration.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The "error" attribute.static final String
The "errorPage" attribute.static final String
The "exclusive" attribute.static final String
The attribute name for the alias offset.static final String
The "position" attribute.static final String
The "redirect" attribute.static final String
The "server" attribute.static final String
The ssl mode attribute.static final String
Attribute name for the subsiteSelection option.static final String
The "title" attribute.static final String
The "usePermanentRedirects" attribute.static final String
The "webserver" attribute.static final String
The name of the DTD for this configuration.static final String
The name of the default XML file for this configuration.static final String
The node name for the alias node.static final String
The node name for the default-uri node.static final String
New secure modes node.static final String
The node name for the parameters.static final String
The node name for the secure site.static final String
Shared folder node name.static final String
The node name for the sites node.static final String
The node name which indicates if apache should be configurable in sitemanager.static final String
Configuration node name.static final String
Configuration node name.static final String
Configuration node name.static final String
Configuration node name.static final String
Configuration node name.static final String
Configuration node name.static final String
The node name for the workplace-server node.Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
Fields inherited from interface org.opencms.configuration.I_CmsXmlConfiguration
A_ALIAS, A_CLASS, A_COUNT, A_DEFAULT, A_DESTINATION, A_ENABLED, A_FROM, A_HANDLER, A_ICON, A_ID, A_KEY, A_MODE, A_NAME, A_ORDER, A_PASSWORD, A_PORT, A_PROTOCOL, A_SUFFIX, A_TO, A_TYPE, A_URI, A_USER, A_VALUE, N_EXPORTPOINT, N_EXPORTPOINTS, N_NAME, N_PARAM, N_PROPERTY, N_RESOURCE, N_SITE, N_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addXmlDigesterRules
(org.apache.commons.digester3.Digester digester) Digests an XML node and creates an instance of this configurable class.org.dom4j.Element
generateXml
(org.dom4j.Element parent) Generates the XML element for this configurable class.Returns the name of the DTD file for this XML configuration, e.g.Returns the site manager.void
Called when OpenCms has written the configuration to the file system.protected void
Initializes member variables.void
setCmsObject
(CmsObject cms) Called during startup with a CmsObject with admin privileges.void
setSiteManager
(CmsSiteManagerImpl siteManager) Sets the site manager.Methods inherited from class org.opencms.configuration.A_CmsXmlConfiguration
addConfigurationParameter, getConfiguration, getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName, initConfiguration, setXmlFileName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, getConfiguration, initConfiguration
Methods inherited from interface org.opencms.configuration.I_CmsXmlConfiguration
getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName
-
Field Details
-
A_ERROR
The "error" attribute.- See Also:
-
A_ERROR_PAGE
The "errorPage" attribute.- See Also:
-
A_EXCLUSIVE
The "exclusive" attribute.- See Also:
-
A_OFFSET
The attribute name for the alias offset.- See Also:
-
A_POSITION
The "position" attribute.- See Also:
-
A_REDIRECT
The "redirect" attribute.- See Also:
-
A_SERVER
The "server" attribute.- See Also:
-
A_SSL
The ssl mode attribute.- See Also:
-
A_SUBSITE_SELECTION
Attribute name for the subsiteSelection option.- See Also:
-
A_TITLE
The "title" attribute.- See Also:
-
A_USE_PERMANENT_REDIRECTS
The "usePermanentRedirects" attribute.- See Also:
-
A_WEBSERVER
The "webserver" attribute.- See Also:
-
CONFIGURATION_DTD_NAME
The name of the DTD for this configuration.- See Also:
-
DEFAULT_XML_FILE_NAME
The name of the default XML file for this configuration.- See Also:
-
N_ALIAS
The node name for the alias node.- See Also:
-
N_DEFAULT_URI
The node name for the default-uri node.- See Also:
-
N_OLD_STYLE_SECURE_SERVER
New secure modes node.- See Also:
-
N_PARAMETERS
The node name for the parameters.- See Also:
-
N_SECURE
The node name for the secure site.- See Also:
-
N_SHARED_FOLDER
Shared folder node name.- See Also:
-
N_SITES
The node name for the sites node.- See Also:
-
N_WEBSERVERSCRIPTING
The node name which indicates if apache should be configurable in sitemanager.- See Also:
-
N_WEBSERVERSCRIPTING_CONFIGTEMPLATE
Configuration node name.- See Also:
-
N_WEBSERVERSCRIPTING_FILENAMEPREFIX
Configuration node name.- See Also:
-
N_WEBSERVERSCRIPTING_LOGGINGDIR
Configuration node name.- See Also:
-
N_WEBSERVERSCRIPTING_SECURETEMPLATE
Configuration node name.- See Also:
-
N_WEBSERVERSCRIPTING_TARGETPATH
Configuration node name.- See Also:
-
N_WEBSERVERSCRIPTING_WEBSERVERSCRIPT
Configuration node name.- See Also:
-
N_WORKPLACE_SERVER
The node name for the workplace-server node.- See Also:
-
-
Constructor Details
-
CmsSitesConfiguration
public CmsSitesConfiguration()
-
-
Method Details
-
addXmlDigesterRules
Description copied from interface:I_CmsXmlConfiguration
Digests an XML node and creates an instance of this configurable class.- Specified by:
addXmlDigesterRules
in interfaceI_CmsXmlConfiguration
- Parameters:
digester
- the digester to use- See Also:
-
generateXml
Description copied from interface:I_CmsXmlConfiguration
Generates the XML element for this configurable class.- Specified by:
generateXml
in interfaceI_CmsXmlConfiguration
- Parameters:
parent
- the parent element in the XML tree- Returns:
- the XML element for this configurable class
- See Also:
-
getDtdFilename
Description copied from interface:I_CmsXmlConfiguration
Returns the name of the DTD file for this XML configuration, e.g.opencms-configuration.dtd
.- Specified by:
getDtdFilename
in interfaceI_CmsXmlConfiguration
- Returns:
- the name of the DTD file for this XML configuration
- See Also:
-
getSiteManager
Returns the site manager.- Returns:
- the site manager
-
handleUpdate
Description copied from interface:I_CmsXmlConfigurationWithUpdateHandler
Called when OpenCms has written the configuration to the file system.- Specified by:
handleUpdate
in interfaceI_CmsXmlConfigurationWithUpdateHandler
- Throws:
Exception
- if something goes wrong- See Also:
-
setCmsObject
Description copied from interface:I_CmsXmlConfigurationWithUpdateHandler
Called during startup with a CmsObject with admin privileges.- Specified by:
setCmsObject
in interfaceI_CmsXmlConfigurationWithUpdateHandler
- Parameters:
cms
- the CMS context- See Also:
-
setSiteManager
Sets the site manager.- Parameters:
siteManager
- the site manager to set
-
initMembers
Description copied from class:A_CmsXmlConfiguration
Initializes member variables.- Specified by:
initMembers
in classA_CmsXmlConfiguration
- See Also:
-