Class 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 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 interface com.atlassian.sal.api.ApplicationProperties
      • getBaseUrl

        public String getBaseUrl​(com.atlassian.sal.api.UrlMode urlMode)
        Specified by:
        getBaseUrl in interface com.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 interface com.atlassian.sal.api.ApplicationProperties
      • getVersion

        public String getVersion()
        Specified by:
        getVersion in interface com.atlassian.sal.api.ApplicationProperties
      • getBuildDate

        public Date getBuildDate()
        Specified by:
        getBuildDate in interface com.atlassian.sal.api.ApplicationProperties
      • getBuildNumber

        public String getBuildNumber()
        Specified by:
        getBuildNumber in interface com.atlassian.sal.api.ApplicationProperties
      • getHomeDirectory

        public File getHomeDirectory()
        Specified by:
        getHomeDirectory in interface com.atlassian.sal.api.ApplicationProperties
      • getLocalHomeDirectory

        @Nonnull
        public Optional<Path> getLocalHomeDirectory()
        Specified by:
        getLocalHomeDirectory in interface com.atlassian.sal.api.ApplicationProperties
      • getSharedHomeDirectory

        @Nonnull
        public Optional<Path> getSharedHomeDirectory()
        Specified by:
        getSharedHomeDirectory in interface com.atlassian.sal.api.ApplicationProperties
      • getPropertyValue

        public String getPropertyValue​(String key)
        Specified by:
        getPropertyValue in interface com.atlassian.sal.api.ApplicationProperties
      • getApplicationName

        public String getApplicationName()
      • getPlatformId

        public @NonNull String getPlatformId()
        Specified by:
        getPlatformId in interface com.atlassian.sal.api.ApplicationProperties
      • getApplicationFileEncoding

        @Nonnull
        public String getApplicationFileEncoding()
        Specified by:
        getApplicationFileEncoding in interface com.atlassian.sal.api.ApplicationProperties