Class SettingsConfiguredDownloadPolicyProvider

java.lang.Object
com.atlassian.confluence.servlet.download.SettingsConfiguredDownloadPolicyProvider
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<com.atlassian.http.mime.DownloadPolicyProvider>

public class SettingsConfiguredDownloadPolicyProvider extends Object implements org.springframework.beans.factory.FactoryBean<com.atlassian.http.mime.DownloadPolicyProvider>
Allows to configure the DownloadPolicy used by Confluence to be selected via the global system setting 'attachmentSecurityLevel'. The default DownloadPolicy will be DownloadPolicy.Smart. If setup has not been completed then DownloadPolicy.Smart is used.
Since:
5.2
  • Constructor Details

    • SettingsConfiguredDownloadPolicyProvider

      public SettingsConfiguredDownloadPolicyProvider(SettingsManager settingsManager)
  • Method Details

    • getObject

      public com.atlassian.http.mime.DownloadPolicyProvider getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<com.atlassian.http.mime.DownloadPolicyProvider>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<com.atlassian.http.mime.DownloadPolicyProvider>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<com.atlassian.http.mime.DownloadPolicyProvider>