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
FieldsModifier and TypeFieldDescriptionstatic final StringThe "error" attribute.static final StringThe "errorPage" attribute.static final StringThe "exclusive" attribute.static final StringThe attribute name for the alias offset.static final StringThe "position" attribute.static final StringThe "redirect" attribute.static final StringThe "server" attribute.static final StringThe ssl mode attribute.static final StringAttribute name for the subsiteSelection option.static final StringThe "title" attribute.static final StringThe "usePermanentRedirects" attribute.static final StringThe "webserver" attribute.static final StringThe name of the DTD for this configuration.static final StringThe name of the default XML file for this configuration.static final StringThe node name for the alias node.static final StringThe node name for the default-uri node.static final StringNew secure modes node.static final StringThe node name for the parameters.static final StringThe node name for the secure site.static final StringShared folder node name.static final StringThe node name for the sites node.static final StringThe node name which indicates if apache should be configurable in sitemanager.static final StringConfiguration node name.static final StringConfiguration node name.static final StringConfiguration node name.static final StringConfiguration node name.static final StringConfiguration node name.static final StringConfiguration node name.static final StringThe node name for the workplace-server node.Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHODFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddXmlDigesterRules(org.apache.commons.digester3.Digester digester) Digests an XML node and creates an instance of this configurable class.org.dom4j.ElementgenerateXml(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.voidCalled when OpenCms has written the configuration to the file system.protected voidInitializes member variables.voidsetCmsObject(CmsObject cms) Called during startup with a CmsObject with admin privileges.voidsetSiteManager(CmsSiteManagerImpl siteManager) Sets the site manager.Methods inherited from class org.opencms.configuration.A_CmsXmlConfiguration
addConfigurationParameter, getConfiguration, getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName, initConfiguration, setXmlFileNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler
addConfigurationParameter, getConfiguration, initConfigurationMethods 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_CmsXmlConfigurationDigests an XML node and creates an instance of this configurable class.- Specified by:
addXmlDigesterRulesin interfaceI_CmsXmlConfiguration- Parameters:
digester- the digester to use- See Also:
-
generateXml
Description copied from interface:I_CmsXmlConfigurationGenerates the XML element for this configurable class.- Specified by:
generateXmlin 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_CmsXmlConfigurationReturns the name of the DTD file for this XML configuration, e.g.opencms-configuration.dtd.- Specified by:
getDtdFilenamein 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_CmsXmlConfigurationWithUpdateHandlerCalled when OpenCms has written the configuration to the file system.- Specified by:
handleUpdatein interfaceI_CmsXmlConfigurationWithUpdateHandler- Throws:
Exception- if something goes wrong- See Also:
-
setCmsObject
Description copied from interface:I_CmsXmlConfigurationWithUpdateHandlerCalled during startup with a CmsObject with admin privileges.- Specified by:
setCmsObjectin 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_CmsXmlConfigurationInitializes member variables.- Specified by:
initMembersin classA_CmsXmlConfiguration- See Also:
-