public class CmsSitesConfiguration extends A_CmsXmlConfiguration implements I_CmsXmlConfigurationWithUpdateHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
A_ERROR
The "error" attribute.
|
static java.lang.String |
A_ERROR_PAGE
The "errorPage" attribute.
|
static java.lang.String |
A_EXCLUSIVE
The "exclusive" attribute.
|
static java.lang.String |
A_OFFSET
The attribute name for the alias offset.
|
static java.lang.String |
A_POSITION
The "position" attribute.
|
static java.lang.String |
A_REDIRECT
The "redirect" attribute.
|
static java.lang.String |
A_SERVER
The "server" attribute.
|
static java.lang.String |
A_SSL
The ssl mode attribute.
|
static java.lang.String |
A_TITLE
The "title" attribute.
|
static java.lang.String |
A_USE_PERMANENT_REDIRECTS
The "usePermanentRedirects" attribute.
|
static java.lang.String |
A_WEBSERVER
The "webserver" attribute.
|
static java.lang.String |
CONFIGURATION_DTD_NAME
The name of the DTD for this configuration.
|
static java.lang.String |
DEFAULT_XML_FILE_NAME
The name of the default XML file for this configuration.
|
static java.lang.String |
N_ALIAS
The node name for the alias node.
|
static java.lang.String |
N_DEFAULT_URI
The node name for the default-uri node.
|
static java.lang.String |
N_OLD_STYLE_SECURE_SERVER
New secure modes node.
|
static java.lang.String |
N_PARAMETERS
The node name for the parameters.
|
static java.lang.String |
N_SECURE
The node name for the secure site.
|
static java.lang.String |
N_SHARED_FOLDER
Shared folder node name.
|
static java.lang.String |
N_SITES
The node name for the sites node.
|
static java.lang.String |
N_WEBSERVERSCRIPTING
The node name which indicates if apache should be configurable in sitemanager.
|
static java.lang.String |
N_WEBSERVERSCRIPTING_CONFIGTEMPLATE
Configuration node name.
|
static java.lang.String |
N_WEBSERVERSCRIPTING_FILENAMEPREFIX
Configuration node name.
|
static java.lang.String |
N_WEBSERVERSCRIPTING_LOGGINGDIR
Configuration node name.
|
static java.lang.String |
N_WEBSERVERSCRIPTING_SECURETEMPLATE
Configuration node name.
|
static java.lang.String |
N_WEBSERVERSCRIPTING_TARGETPATH
Configuration node name.
|
static java.lang.String |
N_WEBSERVERSCRIPTING_WEBSERVERSCRIPT
Configuration node name.
|
static java.lang.String |
N_WORKPLACE_SERVER
The node name for the workplace-server node.
|
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
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
Constructor and Description |
---|
CmsSitesConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
java.lang.String |
getDtdFilename()
Returns the name of the DTD file for this XML configuration,
e.g.
|
CmsSiteManagerImpl |
getSiteManager()
Returns the site manager.
|
void |
handleUpdate()
Called when OpenCms has written the configuration to the file system.
|
protected void |
initMembers()
Initializes member variables.
|
void |
setCmsObject(CmsObject cms)
Called during startup with a CmsObject with admin privileges.
|
void |
setSiteManager(CmsSiteManagerImpl siteManager)
Sets the site manager.
|
addConfigurationParameter, getConfiguration, getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName, initConfiguration, setXmlFileName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDtdSystemLocation, getDtdUrlPrefix, getXmlFileName
addConfigurationParameter, getConfiguration, initConfiguration
public static final java.lang.String A_ERROR
public static final java.lang.String A_ERROR_PAGE
public static final java.lang.String A_EXCLUSIVE
public static final java.lang.String A_OFFSET
public static final java.lang.String A_POSITION
public static final java.lang.String A_SERVER
public static final java.lang.String A_REDIRECT
public static final java.lang.String A_TITLE
public static final java.lang.String A_SSL
public static final java.lang.String A_USE_PERMANENT_REDIRECTS
public static final java.lang.String A_WEBSERVER
public static final java.lang.String CONFIGURATION_DTD_NAME
public static final java.lang.String DEFAULT_XML_FILE_NAME
public static final java.lang.String N_ALIAS
public static final java.lang.String N_DEFAULT_URI
public static final java.lang.String N_PARAMETERS
public static final java.lang.String N_SECURE
public static final java.lang.String N_SHARED_FOLDER
public static final java.lang.String N_OLD_STYLE_SECURE_SERVER
public static final java.lang.String N_SITES
public static final java.lang.String N_WEBSERVERSCRIPTING
public static final java.lang.String N_WEBSERVERSCRIPTING_CONFIGTEMPLATE
public static final java.lang.String N_WEBSERVERSCRIPTING_FILENAMEPREFIX
public static final java.lang.String N_WEBSERVERSCRIPTING_LOGGINGDIR
public static final java.lang.String N_WEBSERVERSCRIPTING_SECURETEMPLATE
public static final java.lang.String N_WEBSERVERSCRIPTING_TARGETPATH
public static final java.lang.String N_WEBSERVERSCRIPTING_WEBSERVERSCRIPT
public static final java.lang.String N_WORKPLACE_SERVER
public CmsSitesConfiguration()
public void addXmlDigesterRules(org.apache.commons.digester3.Digester digester)
I_CmsXmlConfiguration
addXmlDigesterRules
in interface I_CmsXmlConfiguration
digester
- the digester to useI_CmsXmlConfiguration.addXmlDigesterRules(org.apache.commons.digester3.Digester)
public org.dom4j.Element generateXml(org.dom4j.Element parent)
I_CmsXmlConfiguration
generateXml
in interface I_CmsXmlConfiguration
parent
- the parent element in the XML treeI_CmsXmlConfiguration.generateXml(org.dom4j.Element)
public java.lang.String getDtdFilename()
I_CmsXmlConfiguration
opencms-configuration.dtd
.getDtdFilename
in interface I_CmsXmlConfiguration
I_CmsXmlConfiguration.getDtdFilename()
public CmsSiteManagerImpl getSiteManager()
public void handleUpdate() throws java.lang.Exception
I_CmsXmlConfigurationWithUpdateHandler
handleUpdate
in interface I_CmsXmlConfigurationWithUpdateHandler
java.lang.Exception
- if something goes wrongI_CmsXmlConfigurationWithUpdateHandler.handleUpdate()
public void setCmsObject(CmsObject cms)
I_CmsXmlConfigurationWithUpdateHandler
setCmsObject
in interface I_CmsXmlConfigurationWithUpdateHandler
cms
- the CMS contextI_CmsXmlConfigurationWithUpdateHandler.setCmsObject(org.opencms.file.CmsObject)
public void setSiteManager(CmsSiteManagerImpl siteManager)
siteManager
- the site manager to setprotected void initMembers()
A_CmsXmlConfiguration
initMembers
in class A_CmsXmlConfiguration
A_CmsXmlConfiguration.initMembers()