程序包 | 说明 |
---|---|
org.opencms.site |
Provides access to the multi-site configuration of OpenCms.
|
限定符和类型 | 字段和说明 |
---|---|
static CmsSiteMatcher |
CmsSiteMatcher.DEFAULT_MATCHER
Default matcher that always matches all other Site matchers.
|
限定符和类型 | 方法和说明 |
---|---|
CmsSiteMatcher |
CmsSite.getSecureServer()
Returns the secureServer.
|
CmsSiteMatcher |
CmsSite.getSiteMatcher()
Returns the site matcher that describes the URL of this site.
|
CmsSiteMatcher |
CmsSiteManagerImpl.getWorkplaceSiteMatcher()
Returns the site matcher that matches the workplace site.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<CmsSiteMatcher> |
CmsSite.getAliases()
Returns the aliases for this site.
|
java.util.Map<CmsSiteMatcher,CmsSite> |
CmsSiteManagerImpl.getSites()
Returns the map of configured sites, using
CmsSiteMatcher objects as keys and CmsSite objects as values. |
限定符和类型 | 方法和说明 |
---|---|
protected void |
CmsSite.addAlias(CmsSiteMatcher aliasServer)
Adds an alias for the site.
|
boolean |
CmsSiteManagerImpl.isMatching(CmsSiteMatcher matcher)
Returns
true if the given site matcher matches any configured site,
which includes the workplace site. |
boolean |
CmsSiteManagerImpl.isMatchingCurrentSite(CmsObject cms,
CmsSiteMatcher matcher)
Returns
true if the given site matcher matches the current site. |
boolean |
CmsSiteManagerImpl.isWorkplaceRequest(CmsSiteMatcher matcher)
Returns
true if the given site matcher matches the configured OpenCms workplace. |
CmsSite |
CmsSiteManagerImpl.matchSite(CmsSiteMatcher matcher)
Return the configured site that matches the given site matcher,
or the default site if no sites matches.
|
protected void |
CmsSite.setSecureServer(CmsSiteMatcher secureServer)
Sets the secure server.
|
protected void |
CmsSite.setSiteMatcher(CmsSiteMatcher siteMatcher)
Sets the site matcher that describes the URL of this site.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
CmsSite.setAliases(java.util.List<CmsSiteMatcher> aliases)
Sets the aliases for the site.
|
构造器和说明 |
---|
CmsSite(java.lang.String siteRoot,
CmsSiteMatcher siteMatcher)
Constructs a new site object without title and id information,
this is to be used for lookup purposes only.
|
CmsSite(java.lang.String siteRoot,
CmsUUID siteRootUUID,
java.lang.String title,
CmsSiteMatcher siteMatcher,
java.lang.String position)
Constructs a new site object.
|
CmsSite(java.lang.String siteRoot,
CmsUUID siteRootUUID,
java.lang.String title,
CmsSiteMatcher siteMatcher,
java.lang.String position,
java.lang.String errorPage,
CmsSiteMatcher secureSite,
boolean exclusiveUrl,
boolean exclusiveError,
boolean webserver,
java.util.List<CmsSiteMatcher> aliases)
Constructs a new site object.
|
构造器和说明 |
---|
CmsSite(java.lang.String siteRoot,
CmsUUID siteRootUUID,
java.lang.String title,
CmsSiteMatcher siteMatcher,
java.lang.String position,
java.lang.String errorPage,
CmsSiteMatcher secureSite,
boolean exclusiveUrl,
boolean exclusiveError,
boolean webserver,
java.util.List<CmsSiteMatcher> aliases)
Constructs a new site object.
|