Class ConfluenceApplicationProperties
- java.lang.Object
-
- com.atlassian.confluence.api.impl.sal.ConfluenceApplicationProperties
-
- All Implemented Interfaces:
com.atlassian.sal.api.ApplicationProperties
public class ConfluenceApplicationProperties extends Object implements com.atlassian.sal.api.ApplicationProperties
Confluence implementation of the SAL Application Properties.
-
-
Constructor Summary
Constructors Constructor Description ConfluenceApplicationProperties(SettingsManager settingsManager, ClusterConfigurationHelper clusterConfigurationHelper, HttpContext httpContext, com.atlassian.dc.filestore.api.compat.FilesystemPath sharedHome, com.atlassian.dc.filestore.api.compat.FilesystemPath localHome, com.atlassian.dc.filestore.api.compat.FilesystemPath confluenceHome)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApplicationFileEncoding()
String
getApplicationName()
String
getBaseUrl()
String
getBaseUrl(com.atlassian.sal.api.UrlMode urlMode)
protected com.atlassian.fugue.Option<String>
getBaseUrlFromRequest(javax.servlet.http.HttpServletRequest request)
Date
getBuildDate()
String
getBuildNumber()
protected String
getCanonicalBaseUrl()
String
getDisplayName()
File
getHomeDirectory()
HttpContext
getHttpContext()
Optional<Path>
getLocalHomeDirectory()
@NonNull String
getPlatformId()
String
getPropertyValue(String key)
Optional<Path>
getSharedHomeDirectory()
String
getVersion()
-
-
-
Constructor Detail
-
ConfluenceApplicationProperties
public ConfluenceApplicationProperties(SettingsManager settingsManager, ClusterConfigurationHelper clusterConfigurationHelper, HttpContext httpContext, com.atlassian.dc.filestore.api.compat.FilesystemPath sharedHome, com.atlassian.dc.filestore.api.compat.FilesystemPath localHome, com.atlassian.dc.filestore.api.compat.FilesystemPath confluenceHome)
-
-
Method Detail
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrl
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getBaseUrl
public String getBaseUrl(com.atlassian.sal.api.UrlMode urlMode)
- Specified by:
getBaseUrl
in interfacecom.atlassian.sal.api.ApplicationProperties
- Since:
- 5.2
-
getCanonicalBaseUrl
protected String getCanonicalBaseUrl()
- Since:
- 5.2
-
getBaseUrlFromRequest
protected com.atlassian.fugue.Option<String> getBaseUrlFromRequest(javax.servlet.http.HttpServletRequest request)
- Since:
- 5.2
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getVersion
public String getVersion()
- Specified by:
getVersion
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getBuildDate
public Date getBuildDate()
- Specified by:
getBuildDate
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getBuildNumber
public String getBuildNumber()
- Specified by:
getBuildNumber
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getHomeDirectory
public File getHomeDirectory()
- Specified by:
getHomeDirectory
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getLocalHomeDirectory
@Nonnull public Optional<Path> getLocalHomeDirectory()
- Specified by:
getLocalHomeDirectory
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getSharedHomeDirectory
@Nonnull public Optional<Path> getSharedHomeDirectory()
- Specified by:
getSharedHomeDirectory
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getPropertyValue
public String getPropertyValue(String key)
- Specified by:
getPropertyValue
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getHttpContext
public HttpContext getHttpContext()
-
getApplicationName
public String getApplicationName()
-
getPlatformId
public @NonNull String getPlatformId()
- Specified by:
getPlatformId
in interfacecom.atlassian.sal.api.ApplicationProperties
-
getApplicationFileEncoding
@Nonnull public String getApplicationFileEncoding()
- Specified by:
getApplicationFileEncoding
in interfacecom.atlassian.sal.api.ApplicationProperties
-
-