public static String getCredentialStoreThriftServerKeyStorePassword() throws ApplicationSettingsException { return getSetting("credential.store.thrift.server.keystore.password"); }
protected static ApplicationSettings getInstance(){ if (INSTANCE==null){ INSTANCE=new ApplicationSettings(); } return INSTANCE; }
public static EmailNotifierConfiguration getEmailNotifierConfigurations() throws ApplicationSettingsException { return new EmailNotifierConfiguration(ApplicationSettings.getCredentialStoreEmailServer(), Integer.parseInt(ApplicationSettings.getCredentialStoreEmailServerPort()), ApplicationSettings.getCredentialStoreEmailUser(), ApplicationSettings.getCredentialStoreEmailPassword(), Boolean.parseBoolean(ApplicationSettings.getCredentialStoreEmailSSLConnect()), ApplicationSettings.getCredentialStoreEmailFromEmail()); }
/** * Returns the configuration value relevant for the given key. * If configuration value contains references to other configuration values they will also * be replaced. E.g :- If configuration key reads http://${ip}:${port}/axis2/services/RegistryService?wsdl, * the variables ip and port will get replaced by their appropriated values in the configuration. * @param key The configuration key to read value of * @return The configuration value. For above example caller will get a value like * http://192.2.33.12:8080/axis2/services/RegistryService?wsdl * @throws ApplicationSettingsException If an error occurred while reading configurations. * @deprecated use #getSetting(String) instead */ public String getAbsoluteSetting(String key) throws ApplicationSettingsException { String configurationValueWithVariables = ApplicationSettings.getSetting(key); List<String> variableList = getAllMatches(configurationValueWithVariables, REGULAR_EXPRESSION); if (variableList == null || variableList.isEmpty()) { return configurationValueWithVariables; } for(String variableIdentifier : variableList) { String variableName = getVariableNameOnly(variableIdentifier); String value = getAbsoluteSetting(variableName); configurationValueWithVariables = configurationValueWithVariables.replace(variableIdentifier, value); } return configurationValueWithVariables; }
public String getSettingImpl(String key) throws ApplicationSettingsException{ String rawValue=null; if (System.getProperties().containsKey(key)){ rawValue=System.getProperties().getProperty(key); }else{ validateSuccessfulPropertyFileLoad(); if (properties.containsKey(key)){ rawValue=properties.getProperty(key); }else{ throw new UnspecifiedApplicationSettingsException(key); } } return deriveAbsoluteValueImpl(rawValue); }
public static String getCredentialStoreServerHost() throws ApplicationSettingsException { return getSetting("credential.store.server.host"); }
public String getTrustStorePathImpl() throws ApplicationSettingsException { return getSetting(TRUST_STORE_PATH); }
public String getTrustStorePasswordImpl() throws ApplicationSettingsException { return getSetting(TRUST_STORE_PASSWORD); }
public String getCredentialStoreEmailServerImpl() throws ApplicationSettingsException { return getSetting("email.server"); }
public String getCredentialStoreEmailServerPortImpl() throws ApplicationSettingsException { return getSetting("email.server.port"); }
public static String getTrustStorePassword() throws ApplicationSettingsException { return getSetting(TRUST_STORE_PASSWORD); }
public static String getCredentialStoreKeyStorePath() throws ApplicationSettingsException { return getSetting("credential.store.keystore.url"); }
public static String getCredentialStoreNotifierEnabled() throws ApplicationSettingsException { return getSetting("notifier.enabled"); }
public String getCredentialStoreKeyStorePathImpl() throws ApplicationSettingsException { return getSetting("credential.store.keystore.url"); }
public String getCredentialStoreNotifierEnabledImpl() throws ApplicationSettingsException { return getSetting("notifier.enabled"); }
public String getCredentialStoreNotifierDurationImpl() throws ApplicationSettingsException { return getSetting("notifier.duration"); }
public static String getTrustStorePath() throws ApplicationSettingsException { return getSetting(TRUST_STORE_PATH); }
public static String getCredentialStoreThriftServerKeyStorePath() throws ApplicationSettingsException { return getSetting("credential.store.thrift.server.keystore"); }
public static String getCredentialStoreEmailServer() throws ApplicationSettingsException { return getSetting("email.server"); }
public static String getCredentialStoreEmailServerPort() throws ApplicationSettingsException { return getSetting("email.server.port"); }