public class ApplicationConfigurationProperties extends AbstractConfigurationProperties<ApplicationConfigurationPropertyConstant> implements Serializable
Constructor and Description |
---|
ApplicationConfigurationProperties(Collection<ApplicationConfigurationSetting> settings)
Constructs a new application properties container and initializes it with the provided
settings.
|
Modifier and Type | Method and Description |
---|---|
String |
getProperty(ApplicationConfigurationPropertyConstant key)
Returns the property value for the key as String.
|
String |
getPropertyDecrypted(ApplicationConfigurationPropertyConstant key)
Get the decrypted value of an encrypted property.
|
String |
getUrlPrefix()
Returns the configured URL prefix for rendering absolute URLs with HTTP protocol.
|
String |
getUrlPrefixSecured()
Returns the configured URL prefix for rendering absolute URLs with HTTPS protocol.
|
Properties |
getVirusScanningProperties()
Returns the virus scanning properties.
|
getAssertProperty, getProperty, getProperty, getProperty, getProperty
public ApplicationConfigurationProperties(Collection<ApplicationConfigurationSetting> settings)
settings
- the application configuration settingspublic String getProperty(ApplicationConfigurationPropertyConstant key)
getProperty
in class AbstractConfigurationProperties<ApplicationConfigurationPropertyConstant>
key
- the keypublic String getPropertyDecrypted(ApplicationConfigurationPropertyConstant key) throws EncryptionException
key
- the key of the property to returnEncryptionException
- in case decryption failedpublic String getUrlPrefix()
public String getUrlPrefixSecured()
getUrlPrefix()
if the configuration states that HTTPS is
not supported.public Properties getVirusScanningProperties()
Copyright © 2019 Communote team. All rights reserved.